Bill Mill <[EMAIL PROTECTED]> writes:
> On 7/21/05, Jan Danielsson <[EMAIL PROTECTED]> wrote:
>> Hello all,
>>
>>How do I make a python script actually a _python_ in unix:ish
>> environments?
>>
>> I know about adding:
>> #!/bin/sh
>>
>>..as the first row in a shell script, but when I i
Jan Danielsson wrote:
> Hello all,
>
>How do I make a python script actually a _python_ in unix:ish
> environments?
>
> I know about adding:
> #!/bin/sh
>
>..as the first row in a shell script, but when I installed python on
> a NetBSD system, I didn't get a "python" executable; only a "
Jan Danielsson wrote:
> Hello all,
>
>How do I make a python script actually a _python_ in unix:ish
> environments?
>
> I know about adding:
> #!/bin/sh
>
>..as the first row in a shell script, but when I installed python on
> a NetBSD system, I didn't get a "python" executable; only a
You could also set your "python" environment variable on the system...
set it to be "/path/to/python2.4". Then use the "#!/usr/bin/env
python" trick. Just make sure that env is working for you, first.
--
http://mail.python.org/mailman/listinfo/python-list
oops... I missed the "too specific comment." Sorry =)
--
http://mail.python.org/mailman/listinfo/python-list
On 7/21/05, Bill Mill <[EMAIL PROTECTED]> wrote:
> On 7/21/05, Jan Danielsson <[EMAIL PROTECTED]> wrote:
> > Hello all,
> >
> >How do I make a python script actually a _python_ in unix:ish
> > environments?
> >
> > I know about adding:
> > #!/bin/sh
> >
> >..as the first row in a shell scri
On 7/21/05, Jan Danielsson <[EMAIL PROTECTED]> wrote:
> Hello all,
>
>How do I make a python script actually a _python_ in unix:ish
> environments?
>
> I know about adding:
> #!/bin/sh
>
>..as the first row in a shell script, but when I installed python on
> a NetBSD system, I didn't get
On your system, do:
which python2.4
That will give you the full path to the python2.4 binary (let's call it
"path/to/py24").
Then add:
#!/path/to/py24
...to the top of your script.
And make sure the file is chmod'd +x
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 21 Jul 2005 16:34:30 +0200, Jan Danielsson <[EMAIL PROTECTED]> wrote:
>Hello all,
>
> How do I make a python script actually a _python_ in unix:ish
>environments?
>
> [snip]
Put "#!/usr/bin/python". Install the program using distutils: if necessary,
distutils will rewrite the #! line t
Hello all,
How do I make a python script actually a _python_ in unix:ish
environments?
I know about adding:
#!/bin/sh
..as the first row in a shell script, but when I installed python on
a NetBSD system, I didn't get a "python" executable; only a "python2.4"
executable.
Adding "#!/usr/
10 matches
Mail list logo