The Following User Says Thank You to md07 For This Useful Post: | ||
![]() |
2013-04-02
, 01:25
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#3
|
python /home/user/my_script.py
![]() |
2013-04-02
, 02:27
|
Posts: 14 |
Thanked: 4 times |
Joined on Jan 2011
|
#4
|
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
In most cases, you won't need to do this, as the script will handle this for you.Code:python /home/user/my_script.py
The Following User Says Thank You to md07 For This Useful Post: | ||
![]() |
2013-04-02
, 04:06
|
Posts: 14 |
Thanked: 4 times |
Joined on Jan 2011
|
#5
|
The Following User Says Thank You to md07 For This Useful Post: | ||
![]() |
2013-04-02
, 05:23
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#6
|
![]() |
2013-04-02
, 05:27
|
Posts: 14 |
Thanked: 4 times |
Joined on Jan 2011
|
#7
|
In python language the "import" statement loads a code module for use, so you need to get the modules from somewhere.
I kind of guess that this "telephone" module is something that needs to be ported to the platform you are using, it propably does not exist for Harmattan yet.
i used Symbian, this OS run py file very easy. just install python pack, and click py.
Can you guide me how to use full python, espicial run py file from Nokia N9?
TKS!