Page 4 of 4
Re: python path
Posted: 3. Feb 2012, 21:01
by ink3
gapan
I try
stahoo[~]$ chmod +x /home/stahoo/skrypty_python/mypythonscript
and
stahoo[skrypty_python]$ chmod +x mypythonscript
effect is the same
Re: python path
Posted: 3. Feb 2012, 21:03
by gapan
As shador said, the problem is you mounting the /home partition with noexec. Remove the noexec from fstab and reboot.
Re: python path
Posted: 3. Feb 2012, 21:16
by ink3
yeah!
it works! I remove noexec option.
btw It doesn't matter that is:
#!/usr/bin/python
or
#!/usr/bin/env python
many thanks for your patience
gapan - really did not want to offend you.
Re: python path
Posted: 3. Feb 2012, 21:58
by Shador
No, it doesn't but the latter is more portable. Because not all distributions install python to /usr/bin or users might have made their own installations which are in a completely different location. So use the latter if you can.

Re: python path
Posted: 3. Feb 2012, 22:10
by mimosa
See this helpful Wikipedia entry:
https://secure.wikimedia.org/wikipedia/en/wiki/Env
... though you're right, it doesn't matter for personal stuff.