Force shutdown, fix cx_Freeze startup

This commit is contained in:
Joseph Coffland 2016-12-16 10:33:29 -08:00
parent 9fb8e67164
commit aaf80f4e2d
4 changed files with 45 additions and 45 deletions

View File

@ -36,7 +36,6 @@ def set_proc_name(name):
libc.prctl(15, byref(buff), 0, 0, 0)
if __name__ == '__main__':
if sys.platform.startswith('linux'): set_proc_name('FAHControl')
# If present, remove the Launch Services -psn_xxx_xxx argument

View File

@ -710,7 +710,7 @@ class FAHControl(SingleAppServer):
self.db.flush_queued()
except Exception, e: print e
self.shutdown() # Shutdown SingleAppServer
sys.exit(0) # Force shutdown
def set_status(self, text):

View File

@ -67,6 +67,7 @@ if sys.platform == 'darwin':
elif sys.platform == 'win32':
from cx_Freeze import setup, Executable
# Change base to 'Console' for debugging
e = Executable(app, base = 'Win32GUI', icon = 'images/FAHControl.ico')
options = {
'build_exe': {