Traci Basic Useage
import os, sys if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], 'tools') sys.path.append(tools) import traci # NOQA: E402 sumoBinary = shutil.which("sumo-gui") sumoCfg = list(Path(".").rglob("*cfg"))[0] sumoCmd = [sumoBinary, "-c", sumoCfg] import traci.constants as tc # NOQA: E402