gapan
I try
stahoo[~]$ chmod +x /home/stahoo/skrypty_python/mypythonscript
and
stahoo[skrypty_python]$ chmod +x mypythonscript
effect is the same
python path
Re: python path
As shador said, the problem is you mounting the /home partition with noexec. Remove the noexec from fstab and reboot.
Re: python path
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.
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
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
See this helpful Wikipedia entry:
https://secure.wikimedia.org/wikipedia/en/wiki/Env
... though you're right, it doesn't matter for personal stuff.
https://secure.wikimedia.org/wikipedia/en/wiki/Env
... though you're right, it doesn't matter for personal stuff.