python path

Other talk about Salix
User avatar
ink3
Posts: 80
Joined: 9. Apr 2011, 14:16

Re: python path

Post by ink3 »

gapan
I try
stahoo[~]$ chmod +x /home/stahoo/skrypty_python/mypythonscript
and
stahoo[skrypty_python]$ chmod +x mypythonscript

effect is the same
User avatar
gapan
Salix Wizard
Posts: 6353
Joined: 6. Jun 2009, 17:40

Re: python path

Post by gapan »

As shador said, the problem is you mounting the /home partition with noexec. Remove the noexec from fstab and reboot.
Image
Image
User avatar
ink3
Posts: 80
Joined: 9. Apr 2011, 14:16

Re: python path

Post 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.
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: python path

Post 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. :)
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: python path

Post 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.
Post Reply