From 23be5d6cc341c6be827260a53471ab90639da31e Mon Sep 17 00:00:00 2001 From: fly Date: Wed, 26 Aug 2020 16:54:15 +0000 Subject: [PATCH] Create output dir, if not existing Signed-off-by: fly --- split-world.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/split-world.py b/split-world.py index 4c3ad77..8b6a8f5 100755 --- a/split-world.py +++ b/split-world.py @@ -43,6 +43,8 @@ prefix = "osmium-cut-world-step-" state4 = ['nw', 'ne', 'sw', 'se'] state2 = ['s', 'n'] +os.system("mkdir -p output") + def run_cut(path, step, name, start_file=None): if start_file != None: print("Splitting world in 4...")