Skip to content
Snippets Groups Projects
Select Git revision
  • e0727444cabe147b1ef1010683c9842fc5150a71
  • master default protected
  • dev
  • appimage
  • fix_gitlab
  • fixappveyor
  • gitlab
  • fix_ci
  • fix_dbus_error
  • fix_ci_osx
  • sakia020
  • fix_travis#1105
  • feature/backend
  • check_uniq_node_by_endpoints
  • qt5.7
  • feature/agent_architecture
  • translations
  • pyqt5.6
  • qtwebengine
  • pyinstaller
  • landscape
  • 0.53.2
  • 0.53.1
  • 0.53.0
  • 0.52.0
  • 0.51.1
  • 0.51.0
  • 0.50.5
  • 0.50.4
  • 0.50.3
  • 0.50.2
  • 0.50.1
  • 0.50.0
  • 0.33.0rc7
  • 0.33.0rc6
  • 0.33.0rc5
  • 0.33.0rc4
  • 0.33.0rc3
  • 0.33.0rc2
  • 0.33.0rc1
  • 0.32.10post1
41 results

main.py

Blame
  • main.py 1.20 KiB
    """
    Created on 1 févr. 2014
    
    @author: inso
    """
    import signal
    import sys
    import os
    
    from PyQt5.QtWidgets import QApplication
    from PyQt5.QtCore import QLocale
    from cutecoin.gui.mainwindow import MainWindow
    from cutecoin.core.app import Application
    
    
    if __name__ == '__main__':
        # activate ctrl-c interrupt
        signal.signal(signal.SIGINT, signal.SIG_DFL)
        if getattr(sys, 'frozen', False):
            # The application is frozen
            datadir = os.path.dirname(sys.executable)
            os.environ["REQUESTS_CA_BUNDLE"] = os.path.join(datadir, "DigiCertHighAssuranceEVRootCA.crt")
        else:
            # The application is not frozen
            # Change this bit to match where you store your data files:
            datadir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
            os.environ["REQUESTS_CA_BUNDLE"] = os.path.join(datadir,
                                                            "res", "certs", 
                                                            "DigiCertHighAssuranceEVRootCA.crt")
        
    
        cutecoin = QApplication(sys.argv)
        app = Application(sys.argv)
        QLocale.setDefault(QLocale("en_GB"))
        window = MainWindow(app)
        window.show()
        sys.exit(cutecoin.exec_())
        pass