Fix invocation of setup.py in git hooks

This commit is contained in:
Kovid Goyal 2018-07-27 17:31:14 +05:30
parent 450dba332f
commit 9350caab4e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ os.chdir(base)
if flags == '1': # A branch checkout
prev_branch, cur_branch = list(map(get_branch_name, (prev_rev, current_rev)))
subprocess.check_call(['python2', 'setup.py', 'gui', '--summary'])
subprocess.check_call(['./setup.py', 'gui', '--summary'])
# Remove .pyc files as some of them might have been orphaned
for dirpath, dirnames, filenames in os.walk('.'):

View File

@ -12,4 +12,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([sys.executable, 'setup.py', 'gui'])
subprocess.check_call(['./setup.py', 'gui'])