use popen instead of subprocess.call
This commit is contained in:
parent
fe50aafd3d
commit
a3a85957f6
1 changed files with 5 additions and 3 deletions
|
|
@ -93,9 +93,11 @@ def update_terraria_exe():
|
|||
os.remove(terraria_bin_name)
|
||||
|
||||
def build_software():
|
||||
subprocess.call(['/usr/local/bin/xbuild', './TShockAPI/TShockAPI.csproj', '/p:Configuration=Release'])
|
||||
subprocess.call(['/usr/local/bin/xbuild', './TShockAPI/TShockAPI.csproj', '/p:Configuration=Debug'])
|
||||
|
||||
release_proc = subprocess.Popen(['/usr/local/bin/xbuild', './TShockAPI/TShockAPI.csproj', '/p:Configuration=Release'])
|
||||
debug_proc = subprocess.Popen(['/usr/local/bin/xbuild', './TShockAPI/TShockAPI.csproj', '/p:Configuration=Debug'])
|
||||
release_proc.wait()
|
||||
debug_proc.wait()
|
||||
|
||||
if __name__ == '__main__':
|
||||
create_release_folder()
|
||||
update_terraria_exe()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue