Delete no longer needed files earlier
Signed-off-by: fly <fly@emily>
This commit is contained in:
parent
cae4e2e3c8
commit
537addac86
1 changed files with 2 additions and 5 deletions
|
@ -18,9 +18,10 @@ def run_cut(path, step, name, start_file=None):
|
|||
else:
|
||||
print("Building: " + name + "...")
|
||||
os.system("osmium extract -c " + path + str(step) + "-" + name + ".json " + name + ".osm.pbf --overwrite")
|
||||
os.system("rm " + name + ".osm.pbf")
|
||||
|
||||
run_cut(config_path + prefix, 1, "1", world_file)
|
||||
con_pre = config_path + prefix
|
||||
run_cut(con_pre, 1, "1", world_file)
|
||||
for i in range(0, len(state4)):
|
||||
run_cut(con_pre, 2, state4[i])
|
||||
for j in range(0, len(state4)):
|
||||
|
@ -29,7 +30,3 @@ for i in range(0, len(state4)):
|
|||
run_cut(con_pre, 4, state4[i] + "-" + state4[j] + "-" + str(k))
|
||||
for l in range(0, len(state2)):
|
||||
run_cut(con_pre, 5, state4[i] + "-" + state4[j] + "-" + str(k) + "-" + state2[l])
|
||||
os.system("rm " + state4[i] + "-" + state4[j] + "-" + str(k) + "-" + state2[l] + ".osm.pbf")
|
||||
os.system("rm " + state4[i] + "-" + state4[j] + "-" + str(k) + ".osm.pbf")
|
||||
os.system("rm " + state4[i] + "-" + state4[j] + ".osm.pbf")
|
||||
os.system("rm " + state4[i] + ".osm.pbf")
|
||||
|
|
Loading…
Reference in a new issue