diff options
author | Max Kellermann <max@duempel.org> | 2015-11-20 23:40:14 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-11-20 23:40:14 +0100 |
commit | ec2a2522aa56d9d7c13bfa0074dcd344068f93ac (patch) | |
tree | 96506665822e58a9c253bdebe583d45c34997f1f | |
parent | 556f9ee39cf1e675b961614f61e784f996af1e98 (diff) |
win32/build.py: restore option "out_of_tree"
Got lost in the previous commit.
-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) |