I have a file called
ikfast_generator_cpp.py in a directory called
openrave-0.9.0-src/python under my home directory.
How do I run it in Python?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Start a terminal by clicking the appropriate icon on the left side of the screen.
In the terminal, change the current directory to the location of your file:
~ means "my home directory". I hope the rest of the line is clear.)
You should see the prompt change to include the new location. If you like you can check by typing
Now run the Python interpreter, giving it the name of the file to run:
To locate the file use:
$ locate ikfast_generator_cpp.py
Then when you find the path it is in, copy the path and use the following command below.
Lets say the path to your file is openrave-0.9.0-src/python/ikfast_generator_cpp.py.
To run an executable .py (Python) file, use the command:
or if it is not executable use:
$ python openrave-0.9.0-src/python/ikfast_generator_cpp.py