class QSingleApplication(QApplication): sock_file = 'evo_easy_miner_sock' if sys.platform == 'win32': sock_file = "\\\\.\\pipe\\%s" % sock_file elif sys.platform == 'darwin': sock_file = os.path.join(DATA_DIR, '.%s' % sock_file) else: sock_file = os.path.join(getHomeDir(), sock_file) def singleStart(self, appMain): self.appMain = appMain # Socket self.m_socket = QLocalSocket() self.m_socket.connected.connect(self.connectToExistingApp) self.m_socket.error.connect( lambda: self.startApplication(first_start=True)) self.m_socket.connectToServer(self.sock_file, QIODevice.WriteOnly) def connectToExistingApp(self): # Quit application in 250 ms QTimer.singleShot(250, self.quit) print("App is already running.", file=sys.stderr) def startApplication(self, first_start=True): self.m_server = QLocalServer() if self.m_server.listen(self.sock_file): print("Starting app...") self.appMain.run() else: if not first_start: print("Error listening the socket. App can't start!", file=sys.stderr) QTimer.singleShot(250, self.quit) return # remove the listener path file and try to restart app one more time print("Error listening the socket. Try to restart application...", file=sys.stderr) if sys.platform != 'win32': try: os.unlink(self.sock_file) except Exception, err: print(err, file=sys.stderr) QTimer.singleShot(250, lambda: self.startApplication(first_start=False))
''' __doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir USER_AGENT = "Sumo LITE Wallet" APP_NAME = "Sumo LITE Wallet" VERSION = [0, 1, 0] _data_dir = makeDir(os.path.join(getHomeDir(), 'SumoLITEWallet')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [("0", "English"), ("1", "Spanish"), ("2", "German"), ("3", "Italian"), ("4", "Portuguese"), ("5", "Russian"), ("6", "Japanese"), ] # COIN - number of smallest units in one coin
App top-level settings ''' __doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir USER_AGENT = "Toklio GUI Wallet" APP_NAME = "Toklio GUI Wallet" VERSION = [0, 0, 4] _data_dir = makeDir(os.path.join(getHomeDir(), 'ToklioGUIWallet')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [ ("0", "Deutsh"), ("1", "English"), ("2", "German"), ("3", "Italian"), ("4", "Portuguese"), ("5", "Russian"), ("6", "Japanese"), ]
App top-level settings ''' __doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir USER_AGENT = "Wownero GUI Wallet" APP_NAME = "Wownero GUI Wallet" VERSION = [0, 2, 1] _data_dir = makeDir(os.path.join(getHomeDir(), 'WowneroGUIWallet')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [ ("0", "English"), ("1", "Spanish"), ("2", "German"), ("3", "Italian"), ("4", "Portuguese"), ("5", "Russian"), ("6", "Japanese"), ]
App top-level settings ''' __doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir USER_AGENT = "Sumokoin GUI Wallet" APP_NAME = "Sumokoin Wallet" VERSION = [0, 0, 1] _data_dir = makeDir(os.path.join(getHomeDir(), 'SumokoinGUIWallet')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [ ("0", "English"), ("1", "Spanish"), ("2", "German"), ("3", "Italian"), ("4", "Portuguese"), ("5", "Russian"), ("6", "Japanese"), ]
App top-level settings ''' __doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir USER_AGENT = "Galluscoin GUI Wallet" APP_NAME = "Galluscoin GUI Wallet" VERSION = [0, 1, 0] _data_dir = makeDir(os.path.join(getHomeDir(), 'GalluscoinGUIWallet')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [ ("0", "English"), ("1", "Spanish"), ("2", "German"), ("3", "Italian"), ("4", "Portuguese"), ("5", "Russian"), ("6", "Japanese"), ]
#!/usr/bin/python # -*- coding: utf-8 -*- ''' App settings ''' __doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir USER_AGENT = APP_NAME = "Cryptonote Easy Miner" VERSION = [0, 1, 'b1.3'] OPT_RANDOMIZE = False # Randomize scan range start to reduce duplicates OPT_SCANTIME = 60 OPT_REPLY_WITH_RPC2_EXPLICIT = True # support for explicit RPC 2.0 in reply OPT_SEND_PING = True OPT_PING_INTERVAL = 1 # Ping interval in second HASHING_ALGO = ["Cryptonight", "Cryptonight-Light"] _data_dir = str(makeDir(os.path.join(getHomeDir(), 'EvoMiner'))) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'evominer.log') # default logging file log_level = logging.DEBUG # logging level
''' __doc__ = 'default application wide settings' import sys import os import logging import socket from utils.common import getHomeDir, makeDir USER_AGENT = "Solace Remote Wallet" APP_NAME = "Solace Remote Wallet" VERSION = [0, 0, 1] _data_dir = makeDir(os.path.join(getHomeDir(), 'SolaceRemote')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [ ("0", "English"), ("1", "Spanish"), ("2", "German"), ("3", "Italian"), ("4", "Portuguese"), ("5", "Russian"), ("6", "Japanese"), ]
App top-level settings ''' __doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir USER_AGENT = "Saronite RW" APP_NAME = "Saronite RW" VERSION = [1, 0, 0] _data_dir = makeDir(os.path.join(getHomeDir(), 'SaroniteRW')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [ ("0", "English"), ("1", "Spanish"), ("2", "German"), ("3", "Italian"), ("4", "Portuguese"), ("5", "Russian"), ("6", "Japanese"), ]
App top-level settings ''' __doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir USER_AGENT = "XDC GUI Wallet" APP_NAME = "XDC GUI Wallet" VERSION = [0, 1, 2] _data_dir = makeDir(os.path.join(getHomeDir(), 'XDCGUIWallet')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [ ("0", "English"), ("1", "Spanish"), ("2", "German"), ("3", "Italian"), ("4", "Portuguese"), ("5", "Russian"), ("6", "Japanese"), ]
App top-level settings ''' __doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir USER_AGENT = "Hongbao GUI Wallet" APP_NAME = "Hongbao Wallet" VERSION = [0, 0, 1] _data_dir = makeDir(os.path.join(getHomeDir(), 'HongbaoGUIWallet')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [ ("0", "English"), ("1", "Spanish"), ("2", "German"), ("3", "Italian"), ("4", "Portuguese"), ("5", "Russian"), ("6", "Japanese"), ]
App top-level settings ''' __doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir USER_AGENT = "Bixbite GUI Wallet" APP_NAME = "Bixbite GUI Wallet" VERSION = [0, 0, 2] _data_dir = makeDir(os.path.join(getHomeDir(), 'BixbiteGUIWallet')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [ ("0", "English"), ("1", "Spanish"), ("2", "German"), ("3", "Italian"), ("4", "Portuguese"), ("5", "Russian"), ("6", "Japanese"), ]
App top-level settings ''' __doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir USER_AGENT = "Zephyr GUI Wallet" APP_NAME = "Zephyr GUI Wallet" VERSION = [1, 1, 0] _data_dir = makeDir(os.path.join(getHomeDir(), 'ZephyrGUIWallet')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [ ("0", "English"), ("1", "Spanish"), ("2", "German"), ("3", "Italian"), ("4", "Portuguese"), ("5", "Russian"), ("6", "Japanese"), ]
__doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir USER_AGENT = "Ryo GUI Wallet" APP_NAME = "Ryo GUI Wallet" VERSION = [0, 2, 0, 2] if "--testnet" in sys.argv[1:]: _data_dir = makeDir(os.path.join(getHomeDir(), 'RyoGUIWallet', 'testnet')) else: _data_dir = makeDir(os.path.join(getHomeDir(), 'RyoGUIWallet')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [ ("0", "German"), ("1", "English"), ("2", "Spanish"), ("3", "French"), ("4", "Italian"), ("5", "Dutch"),
''' __doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir USER_AGENT = "Solace GUI Wallet" APP_NAME = "Solace GUI Wallet" VERSION = [1, 0, 0] _data_dir = makeDir(os.path.join(getHomeDir(), 'SolaceGUI')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [("0", "English"), ("1", "Spanish"), ("2", "German"), ("3", "Italian"), ("4", "Portuguese"), ("5", "Russian"), ("6", "Japanese"), ] # COIN - number of smallest units in one coin
''' App top-level settings ''' __doc__ = 'default application wide settings' import sys import os import logging from utils.common import getHomeDir, makeDir VERSION = [0, 2, 2] APP_NAME = "TXX GUI Wallet" USER_AGENT = '%s v%s' % (APP_NAME, '.'.join(str(v) for v in VERSION)) _data_dir = makeDir(os.path.join(getHomeDir(), 'TXXGUI')) DATA_DIR = _data_dir log_file = os.path.join(DATA_DIR, 'logs', 'app.log') # default logging file log_level = logging.DEBUG # logging level seed_languages = [ ("German", u"Deutsch"), ("English", u"English"), ("Spanish", u"Español"), ("French", u"Français"), ("Italian", u"Italiano"), ("Dutch", u"Nederlands"), ("Portuguese", u"Português"), ("Russian", u"Русский язык"), ("Japanese", u"日本語 "),