mirror of
https://github.com/Ahp06/SUMO_Emissions.git
synced 2024-11-22 03:26:30 +00:00
Supress stdout of the commnands
This commit is contained in:
parent
9bfc30d31d
commit
3f171fe19e
@ -21,9 +21,9 @@ def clean():
|
|||||||
|
|
||||||
def generate_scenario(out_path, name):
|
def generate_scenario(out_path, name):
|
||||||
print('Creating the network…')
|
print('Creating the network…')
|
||||||
subprocess.run(NETCONVERTCMD)
|
subprocess.run(NETCONVERTCMD, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
print('Extracting polygons…')
|
print('Extracting polygons…')
|
||||||
subprocess.run(POLYCONVERTCMD)
|
subprocess.run(POLYCONVERTCMD, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
print('Moving files')
|
print('Moving files')
|
||||||
shutil.move(os.path.join(STATICDIR, 'simul.net.xml'), os.path.join(out_path, f'{name}.net.xml'))
|
shutil.move(os.path.join(STATICDIR, 'simul.net.xml'), os.path.join(out_path, f'{name}.net.xml'))
|
||||||
shutil.move(os.path.join(STATICDIR, 'simul.poly.xml'), os.path.join(out_path, f'{name}.poly.xml'))
|
shutil.move(os.path.join(STATICDIR, 'simul.poly.xml'), os.path.join(out_path, f'{name}.poly.xml'))
|
||||||
|
Loading…
Reference in New Issue
Block a user