Danke Jakob, It works, the program seems to have been read correctly but SUMO does not automatically open as in the terminal. Do I have to do something else?
Regards François >>> import runner >>> runner <module 'runner' from 'runner.py'> >>> ________________________________________ De : Jakob Erdmann [[email protected]] Date d'envoi : 5 juin 2015 16:22 À : François Vaudrin Cc : sumo-user Objet : Re: [sumo-user] Python script Traci and IDLE try sys.path.append(DIR_OF_RUNNER.PY) before trying to import runner 2015-06-05 18:58 GMT+02:00 François Vaudrin <[email protected]<mailto:[email protected]>>: Hello, I can run the script Tutorials / TraCI4Traffic Lights in a terminal using $ python runner.py By-cons, when I work in the development environment IDLE (Integrated Development Environment) for Python .... IDLE (using Python-2.7) ... I can not start the script. >>> Import runner >>> runner NameError: name 'runner' is not defined I do other tests (runner.main (), etc.) but it does not work. Does anyone has had this problem? thank you François ------------------------------------------------------------------------------ _______________________________________________ sumo-user mailing list [email protected]<mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/sumo-user ------------------------------------------------------------------------------ _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
