mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
only using pythonw if it exists
This commit is contained in:
parent
1e0b8ec55d
commit
900b75056a
@ -14,7 +14,7 @@ import platform
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import uuid
|
import uuid
|
||||||
from os.path import expanduser, dirname, realpath, isfile, join
|
from os.path import expanduser, dirname, realpath, isfile, join, exists
|
||||||
from subprocess import call, Popen
|
from subprocess import call, Popen
|
||||||
|
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ def api(targetFile, timestamp, isWrite=False, endtime=0):
|
|||||||
if targetFile:
|
if targetFile:
|
||||||
|
|
||||||
python_binary = sys.executable
|
python_binary = sys.executable
|
||||||
if platform.system() == 'Windows':
|
if platform.system() == 'Windows' and exists(python_binary+'w'):
|
||||||
python_binary = python_binary + 'w'
|
python_binary = python_binary + 'w'
|
||||||
|
|
||||||
cmd = [python_binary, API_CLIENT,
|
cmd = [python_binary, API_CLIENT,
|
||||||
|
Loading…
Reference in New Issue
Block a user