View Single Post
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#868
There's a minor problem with modrana.py. The first 2 lines are:

Code:
import os.path
#!/usr/bin/python
The line with the shebang (ie 2nd line) should always come first. The problem is masked when running on the N900 because it is started with a shell script which explicitly starts python. If you run it directly ie:
Code:
./modrana.py
it dies with the following errors:
Code:
./modrana.py: line 25: modulesFolder: command not found
./modrana.py: line 27: syntax error near unexpected token `modulesFolder'
./modrana.py: line 27: `sys.path.append(modulesFolder)'
 

The Following User Says Thank You to kureyon For This Useful Post: