From 65094ecf745609277eb544c92dc02bcc42fd6e6d Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Sat, 21 Sep 2013 10:34:40 -0700 Subject: [PATCH] printing python binary in command to Sublime Console when in debug mode, unless has SSL support --- WakaTime.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/WakaTime.py b/WakaTime.py index 7e8c5ed..45893e9 100644 --- a/WakaTime.py +++ b/WakaTime.py @@ -159,11 +159,14 @@ class SendActionThread(threading.Thread): cmd.append('--write') if self.debug: cmd.append('--verbose') - print(cmd) if HAS_SSL: wakatime.main(cmd) + if self.debug: + print(cmd) else: cmd.insert(0, python_binary()) + if self.debug: + print(cmd) if platform.system() == 'Windows': Popen(cmd, shell=False) else: