windows want its executable as first parameter

This commit is contained in:
un-pogaz 2025-09-20 11:11:41 +02:00
parent e7e1f86183
commit 5fed12a0ca
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ if flags == '1': # A branch checkout
prev_branch, cur_branch = list(map(get_branch_name, (prev_rev, current_rev)))
rebase_in_progress = os.path.exists('.git/rebase-apply') or os.path.exists('.git/rebase-merge')
subprocess.check_call('./setup.py gui --summary'.split())
subprocess.check_call([sys.executable, './setup.py', 'gui', '--summary'])
# Remove .pyc files as some of them might have been orphaned
for dirpath, dirnames, filenames in os.walk('.'):

View File

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