Thread
:
Nokia N9-How to use python to run py file
View Single Post
marxian
2013-04-02 , 01:25
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#
3
Usually, it is enough to simply enter the path to the file. So, if the path to the file is /home/user/my_script.py, just type that in the terminal and press enter. Sometimes, you may need to tell the shell to use the python environment, in which case you would type
Code:
python /home/user/my_script.py
In most cases, you won't need to do this, as the script will handle this for you.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.'
- J K Galbraith
My website
GitHub
Quote & Reply
|
The Following 2 Users Say Thank You to marxian For This Useful Post:
md07
,
ranbaxy
marxian
View Public Profile
Send a private message to marxian
Find all posts by marxian