printing python binary in command to Sublime Console when in debug mode, unless has SSL support

This commit is contained in:
Alan Hamlett 2013-09-21 10:34:40 -07:00
parent 0b9fcbd96c
commit 65094ecf74

View file

@ -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: