|
|
@ -107,7 +107,7 @@ def run_install_script(d): |
|
|
|
script = d.install_script |
|
|
|
script = d.install_script |
|
|
|
print('Running custom install script %s' % script) |
|
|
|
print('Running custom install script %s' % script) |
|
|
|
suffix = os.path.splitext(script)[1].lower() |
|
|
|
suffix = os.path.splitext(script)[1].lower() |
|
|
|
if platform.system().lower() == 'windows' and suffix != 'bat': |
|
|
|
if platform.system().lower() == 'windows' and suffix != '.bat': |
|
|
|
first_line = open(script).readline().strip() |
|
|
|
first_line = open(script).readline().strip() |
|
|
|
if first_line.startswith('#!'): |
|
|
|
if first_line.startswith('#!'): |
|
|
|
commands = first_line[2:].split('#')[0].strip().split() |
|
|
|
commands = first_line[2:].split('#')[0].strip().split() |
|
|
|