updated to new mozilla-build location

This commit is contained in:
Bert van der Weerd 2022-02-23 21:30:37 +01:00
parent 0150e0b2d1
commit 6f350f04f1
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1

6
mk.py
View file

@ -2,6 +2,8 @@
import os,sys,subprocess,os.path import os,sys,subprocess,os.path
bash_loc = 'd:/mozilla-build/msys/bin/bash.exe'
# native()/bash()/exec() utility functions # native()/bash()/exec() utility functions
def native(cmd,do_print=True): def native(cmd,do_print=True):
sys.stdout.flush() sys.stdout.flush()
@ -15,7 +17,7 @@ def native(cmd,do_print=True):
def bash(cmd,do_print=True): def bash(cmd,do_print=True):
tmp = [] tmp = []
tmp += ['c:/mozilla-build/msys/bin/bash.exe', '-c', cmd] tmp += [bash_loc, '-c', cmd]
sys.stdout.flush() sys.stdout.flush()
if do_print: if do_print:
print(cmd) print(cmd)
@ -27,7 +29,7 @@ def bash(cmd,do_print=True):
def exec(cmd,do_print=True): def exec(cmd,do_print=True):
_native = False _native = False
if not os.path.isfile('c:/mozilla-build/msys/bin/bash.exe'): if not os.path.isfile(bash_loc):
_native = True _native = True
if _native: if _native:
return native(cmd,do_print) return native(cmd,do_print)