示例#1
0
#!/usr/bin/python3

# Import application
from application import Application

# Executing the application in main
sptp = Application()

sptp.execute()
示例#2
0
'''
Main entry point for program.
'''

import sys
from PyQt5 import QtCore
from application import Application

# --- PyQt5 missing exception hook fix
if QtCore.QT_VERSION >= 0x50501:

    def excepthook(type_, value, traceback_):
        traceback.print_exception(type_, value, traceback_)
        QtCore.qFatal('')

    sys.excepthook = excepthook

if __name__ == "__main__":
    app = Application()
    app.execute()
示例#3
0
#! /usr/bin/env python
# -*- coding: utf-8 -*-

import os, sys

# make sure that the the application can be executed from anywhere
currentDir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(currentDir)
os.chdir(currentDir)

# make sure that there is only one instance of this process running
# from tendo import singleton
import singleton

singletonGuard = singleton.SingleInstance()

from application import Application

# start the application
application = Application()
application.execute()