From 84e0a8c26748a3279a0944008b8abf86e2f38636 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Sun, 3 Oct 2021 19:33:58 +0200 Subject: [PATCH] updated path to tnc --- tnc/daemon.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tnc/daemon.py b/tnc/daemon.py index 4b7284ba..42d09059 100644 --- a/tnc/daemon.py +++ b/tnc/daemon.py @@ -131,14 +131,13 @@ class CMDTCPRequestHandler(socketserver.BaseRequestHandler): # try running tnc from binary, else run from source # this helps running the tnc in a developer environment try: - # subprocess.check_call("exec ./tnc " + command) - subprocess.check_call("exec ./tnc ") command = [] - command.append('tnc') + command.append('./tnc') command += options p = subprocess.Popen(command) print("running TNC from binary...") - except: + except Exception as e: + print(e) command = [] command.append('python3') command.append('main.py')