From d9a155ccbaf3560bdce2457abbf166e5af8a3299 Mon Sep 17 00:00:00 2001 From: Bert van der Weerd Date: Sat, 8 Jan 2022 20:46:18 +0100 Subject: [PATCH] changes to _native use --- mk.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mk.py b/mk.py index bd0fa55..b603830 100755 --- a/mk.py +++ b/mk.py @@ -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)