diff --git a/kiwix-build.py b/kiwix-build.py index 58c9ed3..916cd91 100755 --- a/kiwix-build.py +++ b/kiwix-build.py @@ -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: