This commit is contained in:
Oleg Korshul
2019-11-27 10:48:37 +03:00
parent 31104e41f3
commit 6bd77c2120
3 changed files with 26 additions and 2 deletions

View File

@ -33,6 +33,13 @@ def set_env(name, value):
os.environ[name] = value
return
def configure_common_apps():
if ("windows" == host_platform()):
os.environ["PATH"] = get_script_dir() + "/../tools/win/7z" + os.pathsep + get_script_dir() + "/../tools/win/curl" + os.pathsep + os.environ["PATH"]
elif ("mac" == host_platform()):
os.environ["PATH"] = get_script_dir() + "/../tools/mac" + os.pathsep + os.environ["PATH"]
return
# file system -------------------------------------------
def is_file(path):
return os.path.isfile(get_path(path))