Fix python invocation in git hooks

This commit is contained in:
Kovid Goyal
2018-06-10 07:29:04 +05:30
parent d7828644f5
commit cd7e8891bd
2 changed files with 6 additions and 5 deletions
+1 -3
View File
@@ -14,6 +14,4 @@ os.chdir(base)
action = [x.decode('utf-8') if isinstance(x, bytes) else x for x in sys.argv[1:]][0]
if action == 'rebase':
subprocess.check_call(['python', 'setup.py', 'gui'])
subprocess.check_call([sys.executable, 'setup.py', 'gui'])