Create output dir, if not existing

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2020-08-26 16:54:15 +00:00
parent 18af9f90e3
commit 23be5d6cc3

View file

@ -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...")