Be sure that the cwd exists before running the command.
This commit is contained in:
parent
edecfb34f9
commit
7cb8207e11
|
@ -163,6 +163,7 @@ class BuildEnv:
|
|||
return n
|
||||
|
||||
def run_command(self, command, cwd, context, env=None, input=None):
|
||||
os.makedirs(cwd, exist_ok=True)
|
||||
with open(context.log_file, 'w') as log:
|
||||
log.write("run command '{}'\n".format(command))
|
||||
if env:
|
||||
|
|
Loading…
Reference in New Issue