mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
Be sure that the cwd exists before running the command.
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user