Fix zips not being created

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2020-02-13 17:42:26 +00:00
parent 937775b3c5
commit d6d36e8caf

View file

@ -203,8 +203,9 @@ while running:
print("Packaging " + name + "...") print("Packaging " + name + "...")
cmd = "bash -c 'cd projects/worldbuild/scenery && zip -rq " + output + "/" + name_major + "/" + name + ".zip {Details,Pylons,Buildings,Roads}/" + name_major + "/" + name + "/*'"
with open(os.devnull, 'w') as fp: with open(os.devnull, 'w') as fp:
package = Popen("cd projects/worldbuild/scenery && zip -rq " + output + "/" + name_major + "/" + name + ".zip {Details,Pylons,Buildings,Roads}/" + name_major + "/" + name + "/*" , shell=True, start_new_session=True, stdout=fp) package = Popen(cmd , shell=True, start_new_session=True, stdout=fp)
package.wait() package.wait()