Location of the Pythin bin file?
Remco Gerlich
scarblac at pino.selwerd.nl
Wed May 30 06:43:59 EDT 2001
Modman <modman at altavista.com> wrote in comp.lang.python:
> I am trying to setup a python script to execute automaticly, however I
> can not find the location of my Python bin file.
>
> I use Mandrake 8.0
>
> I have looked in /usr/local/bin, /bin, /sbin, and any other place I
> could think of.
>
> Is it there and I just wrote the command out incorectly at the top of
> my source?
It's probably in /usr/bin. You can find out with 'which python'.
To avoid this problem, use
#!/usr/bin/env python
which will start up python wherever it is, assuming it is in your path.
--
Remco Gerlich
More information about the Python-list
mailing list