diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-01-09 15:09:53 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-01-09 17:30:44 +0800 |
commit | 4bcad96c5a3f1ab17187e264e0e550fab56a29dc (patch) | |
tree | c8b60c5178121739df29c0507482170a5764db89 /win32/gi_msvc_build_utils.py | |
parent | 46b6521c246948182d5ac19e2c5c5a719f1e3825 (diff) | |
download | gobject-introspection-4bcad96c5a3f1ab17187e264e0e550fab56a29dc.tar.gz |
Visual Studio builds: Move build files to win32/
As suggested, we don't really need two layers of directories to get to the
projects, so move the project files to be under win32/ rather than
build/win32/.
Diffstat (limited to 'win32/gi_msvc_build_utils.py')
-rw-r--r-- | win32/gi_msvc_build_utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/win32/gi_msvc_build_utils.py b/win32/gi_msvc_build_utils.py new file mode 100644 index 00000000..150f66ec --- /dev/null +++ b/win32/gi_msvc_build_utils.py @@ -0,0 +1,8 @@ +import os + +def parent_dir(path): + if not os.path.isabs(path): + path = os.path.abspath(path) + if os.path.isfile(path): + path = os.path.dirname(path) + return os.path.split(path)[0] |