From 3f171fe19e49983c9e8bb2b4b757a07935e9c3dd Mon Sep 17 00:00:00 2001 From: Thibaud Date: Fri, 7 Dec 2018 16:45:11 +0100 Subject: [PATCH] Supress stdout of the commnands --- configurator/configurator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configurator/configurator.py b/configurator/configurator.py index ca56a5f..cec6157 100644 --- a/configurator/configurator.py +++ b/configurator/configurator.py @@ -21,9 +21,9 @@ def clean(): def generate_scenario(out_path, name): print('Creating the network…') - subprocess.run(NETCONVERTCMD) + subprocess.run(NETCONVERTCMD, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) print('Extracting polygons…') - subprocess.run(POLYCONVERTCMD) + subprocess.run(POLYCONVERTCMD, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) 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.poly.xml'), os.path.join(out_path, f'{name}.poly.xml'))