diff --git a/setup/git_post_checkout_hook.py b/setup/git_post_checkout_hook.py index 74de3ad82a..7d46791208 100755 --- a/setup/git_post_checkout_hook.py +++ b/setup/git_post_checkout_hook.py @@ -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('.'): diff --git a/setup/git_post_rewrite_hook.py b/setup/git_post_rewrite_hook.py index bd059b11bf..48170a279d 100755 --- a/setup/git_post_rewrite_hook.py +++ b/setup/git_post_rewrite_hook.py @@ -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'])