October 26th, 2013, 03:04 PM
My Shebang in Debian Weezy for RPi does not work
I am trying to make some executable for my Python scripts by adding the shebang as first topmost line of my scripts by adding
but neither of these are working. I am using Debian wheezy distribution for Rpi. and regard less I use Python or Python3 the results are the same !!!
But If I use my IDLE or IDLE3 environment and run or If from a terminal I write:
$ sudo python myapp.py
it works as it should.
I would appreciate if some one could shade some light on this and get me going.
Br and thanks in advance
October 26th, 2013, 09:21 PM
Can you try this on your shell:
If it returns, say, "/home/python27/python", then you should set your shebang to this path.
October 28th, 2013, 10:39 AM
You need to enable executable mode.
$ chmod +x your.script
[/code] are essential for python code and Makefiles!