Fix program quit, enable debug mode

formac 1665459376
Cole Deck 2 years ago
parent d069196887
commit a83e4016ab

@ -1,4 +1,4 @@
import os
import sys import sys
import subprocess import subprocess
from multiprocessing import Process, Manager, Pool, TimeoutError, freeze_support, active_children from multiprocessing import Process, Manager, Pool, TimeoutError, freeze_support, active_children
@ -47,8 +47,8 @@ def netstat_done(res):
def process_done(res): def process_done(res):
fprint("uploading to sftp...") fprint("uploading to sftp...")
ssh.sftp_send_data(res, config, datafile) #ssh.sftp_send_data(res, config, datafile)
#procdata_res = pool.apply_async(ssh.sftp_send_data, (res, config, datafile)) procdata_res = pool.apply_async(ssh.sftp_send_data, (res, config, datafile))

@ -2,7 +2,7 @@ import sys
from cx_Freeze import setup, Executable from cx_Freeze import setup, Executable
debug = True debug = True
debug = not debug #debug = not debug
# Dependencies are automatically detected, but it might need fine tuning. # Dependencies are automatically detected, but it might need fine tuning.
# "packages": ["os"] is used as example only # "packages": ["os"] is used as example only
build_exe_options = {"packages": ["os"], "excludes": ["tkinter"], "include_msvcr": True, "include_files": ["icon.png", "IPPigeon.lnk", "config.yml", "keyfile-admin.pem"], "optimize": 2} build_exe_options = {"packages": ["os"], "excludes": ["tkinter"], "include_msvcr": True, "include_files": ["icon.png", "IPPigeon.lnk", "config.yml", "keyfile-admin.pem"], "optimize": 2}

Loading…
Cancel
Save