From 96f8cd89c35a94f21aff0249b45600c1ef654ede Mon Sep 17 00:00:00 2001 From: EndrII Date: Thu, 15 Apr 2021 21:33:26 +0300 Subject: [PATCH] ref #12 added new pwd location --- BuildBotLib/basemodule.py | 4 ++-- BuildBotLib/make.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/BuildBotLib/basemodule.py b/BuildBotLib/basemodule.py index 62d495d..2525de7 100644 --- a/BuildBotLib/basemodule.py +++ b/BuildBotLib/basemodule.py @@ -14,10 +14,10 @@ class BaseModule: P_Android = 'Android' P_Wasm = 'Wasm' - def __init__(self, platform): + def __init__(self, platform, pwd="."): self.home = str(Path.home()) self.platform = platform - self.pwd = "." + self.pwd = pwd if self.platform == self.P_Windows: self.MULTIPLE_SH_COMMAND = ["cmd", "/c"] diff --git a/BuildBotLib/make.py b/BuildBotLib/make.py index 653adef..55c4932 100644 --- a/BuildBotLib/make.py +++ b/BuildBotLib/make.py @@ -10,7 +10,9 @@ import hashlib class Make(BaseModule): def __init__(self, platform): - BaseModule.__init__(self, platform) + BaseModule.__init__(self, + platform, + util.Interpolate('%(prop:project)s')) self.tempRepoDir = "" def isSupport(self, step):