diff options
Diffstat (limited to '')
-rwxr-xr-x | win32/build.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/win32/build.py b/win32/build.py index f67d23b84..cddd671ec 100755 --- a/win32/build.py +++ b/win32/build.py @@ -92,9 +92,13 @@ class Project: except FileNotFoundError: return False - def unpack(self): - global src_path - return untar(self.download(), src_path, self.base) + def unpack(self, out_of_tree=True): + global src_path, build_path + if out_of_tree: + parent_path = src_path + else: + parent_path = build_path + return untar(self.download(), parent_path, self.base) def make_build_path(self): path = os.path.join(build_path, self.base) |