changes to _native use

This commit is contained in:
Bert van der Weerd 2022-01-08 20:46:18 +01:00
parent 99090a20f0
commit d9a155ccba
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1

5
mk.py
View file

@ -2,6 +2,10 @@
import os,sys,subprocess
# note: change this to True when *not* on windows
_native = False
# native()/bash()/exec() utility functions
def native(cmd):
print(cmd)
retval = os.system(cmd)
@ -16,7 +20,6 @@ def bash(cmd):
if retval != 0:
sys.exit(retval)
_native = False # modify this when needed
def exec(cmd):
if _native:
return native(cmd)