Force shutdown, fix cx_Freeze startup
This commit is contained in:
parent
9fb8e67164
commit
aaf80f4e2d
@ -36,7 +36,6 @@ def set_proc_name(name):
|
|||||||
libc.prctl(15, byref(buff), 0, 0, 0)
|
libc.prctl(15, byref(buff), 0, 0, 0)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
if sys.platform.startswith('linux'): set_proc_name('FAHControl')
|
if sys.platform.startswith('linux'): set_proc_name('FAHControl')
|
||||||
|
|
||||||
# If present, remove the Launch Services -psn_xxx_xxx argument
|
# If present, remove the Launch Services -psn_xxx_xxx argument
|
||||||
|
@ -710,7 +710,7 @@ class FAHControl(SingleAppServer):
|
|||||||
self.db.flush_queued()
|
self.db.flush_queued()
|
||||||
except Exception, e: print e
|
except Exception, e: print e
|
||||||
|
|
||||||
self.shutdown() # Shutdown SingleAppServer
|
sys.exit(0) # Force shutdown
|
||||||
|
|
||||||
|
|
||||||
def set_status(self, text):
|
def set_status(self, text):
|
||||||
|
1
setup.py
1
setup.py
@ -67,6 +67,7 @@ if sys.platform == 'darwin':
|
|||||||
elif sys.platform == 'win32':
|
elif sys.platform == 'win32':
|
||||||
from cx_Freeze import setup, Executable
|
from cx_Freeze import setup, Executable
|
||||||
|
|
||||||
|
# Change base to 'Console' for debugging
|
||||||
e = Executable(app, base = 'Win32GUI', icon = 'images/FAHControl.ico')
|
e = Executable(app, base = 'Win32GUI', icon = 'images/FAHControl.ico')
|
||||||
options = {
|
options = {
|
||||||
'build_exe': {
|
'build_exe': {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user