1
0
mirror of https://github.com/Ahp06/SUMO_Emissions.git synced 2024-11-22 11:36:29 +00:00
sumo-emissions/sumo_project/config.py

23 lines
479 B
Python
Raw Normal View History

2018-11-14 13:56:54 +00:00
"""
Global configuration for the simulation
"""
import os
import sys
if 'SUMO_HOME' in os.environ:
tools = os.path.join(os.environ['SUMO_HOME'], 'tools')
sys.path.append(tools)
else:
sys.exit("please declare environment variable 'SUMO_HOME'")
_SUMOCMD = 'sumo-gui'
2018-11-14 14:02:52 +00:00
_SUMOCFG = "mulhouse_simulation/osm.sumocfg"
2018-11-14 13:56:54 +00:00
CELLS_NUMBER = 10
CO2_THRESHOLD = 500000
sumo_binary = os.path.join(os.environ['SUMO_HOME'], 'bin', _SUMOCMD)
sumo_cmd = [sumo_binary, "-c", _SUMOCFG]