ref #12 added new pwd location

This commit is contained in:
Andrei Yankovich 2021-04-15 21:33:26 +03:00
parent e874938f3c
commit 96f8cd89c3
2 changed files with 5 additions and 3 deletions

View File

@ -14,10 +14,10 @@ class BaseModule:
P_Android = 'Android' P_Android = 'Android'
P_Wasm = 'Wasm' P_Wasm = 'Wasm'
def __init__(self, platform): def __init__(self, platform, pwd="."):
self.home = str(Path.home()) self.home = str(Path.home())
self.platform = platform self.platform = platform
self.pwd = "." self.pwd = pwd
if self.platform == self.P_Windows: if self.platform == self.P_Windows:
self.MULTIPLE_SH_COMMAND = ["cmd", "/c"] self.MULTIPLE_SH_COMMAND = ["cmd", "/c"]

View File

@ -10,7 +10,9 @@ import hashlib
class Make(BaseModule): class Make(BaseModule):
def __init__(self, platform): def __init__(self, platform):
BaseModule.__init__(self, platform) BaseModule.__init__(self,
platform,
util.Interpolate('%(prop:project)s'))
self.tempRepoDir = "" self.tempRepoDir = ""
def isSupport(self, step): def isSupport(self, step):