Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] What is wrong while execution....

Hi,

the screenshot and your questions does not really fit.

When you

- append the directory of your python scripts to your PATH variable

- make your scripts executable (chmod +x ...)

- start your script with the shebang line #!/usr/bin/env python or #!/usr/bin/env python3

Then you can execute your scripts from the shell in any directory. Just type the name. This solves the problem from your screenshot.

From inside a python script you can use sys.path.append (see scripts in $SUMO_HOME/tools, e.g.

/tools/visualization/plot_summary.py:sys.path.append(os.path.join(os.environ['SUMO_HOME'], 'tools')) )

Best regards, Harald

Am 02.05.20 um 08:29 schrieb Pallavi Mandhare:
Hi,
I am executing one code on sumo
But as I start execution of python file it exits from run..
how to solve this problem screen shot is attached ...
How to manage traci path ?
How to identify traci path from system on ubuntu os?

thanks in advanced...


--
Thanks & Regards
Pallavi Mandhare Burande

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top