mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix invocation of setup.py in git hooks
This commit is contained in:
parent
450dba332f
commit
9350caab4e
@ -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('.'):
|
||||
|
@ -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'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user