Fix zips not being created
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
937775b3c5
commit
d6d36e8caf
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue