summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-11-20 23:40:14 +0100
committerMax Kellermann <max@duempel.org>2015-11-20 23:40:14 +0100
commitec2a2522aa56d9d7c13bfa0074dcd344068f93ac (patch)
tree96506665822e58a9c253bdebe583d45c34997f1f /win32
parent556f9ee39cf1e675b961614f61e784f996af1e98 (diff)
win32/build.py: restore option "out_of_tree"
Got lost in the previous commit.
Diffstat (limited to 'win32')
-rwxr-xr-xwin32/build.py10
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)