From a83e4016abd8d12924b014de6bd6b088cb538f9e Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Mon, 10 Oct 2022 22:35:52 -0500 Subject: [PATCH] Fix program quit, enable debug mode --- ippigeon.py | 6 +++--- setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ippigeon.py b/ippigeon.py index 194507a..a3fe54a 100644 --- a/ippigeon.py +++ b/ippigeon.py @@ -1,4 +1,4 @@ - +import os import sys import subprocess from multiprocessing import Process, Manager, Pool, TimeoutError, freeze_support, active_children @@ -47,8 +47,8 @@ def netstat_done(res): def process_done(res): fprint("uploading to sftp...") - ssh.sftp_send_data(res, config, datafile) - #procdata_res = pool.apply_async(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)) diff --git a/setup.py b/setup.py index 550380b..e5828f7 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ import sys from cx_Freeze import setup, Executable debug = True -debug = not debug +#debug = not debug # Dependencies are automatically detected, but it might need fine tuning. # "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}