diff options
Diffstat (limited to 'giscanner/utils.py')
-rw-r--r-- | giscanner/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/giscanner/utils.py b/giscanner/utils.py index 4865ca8c..09132b2d 100644 --- a/giscanner/utils.py +++ b/giscanner/utils.py @@ -184,6 +184,10 @@ def cflag_real_include_path(cflag): return "-I" + os.path.realpath(cflag[2:]) +def host_os(): + return os.environ.get("GI_HOST_OS", os.name) + + def which(program): def is_exe(fpath): return os.path.isfile(fpath) and os.access(fpath, os.X_OK) |