Why Don't Scripts Run ?
Andrae Muys
amuys at shortech.com.au
Wed Mar 13 19:07:11 EST 2002
Michael Kelly <mkelly2002NOSPAM at earthlink.net> wrote in message news:<1p9v8u4vo4dqpccjsom40gtjlgtaiedve8 at 4ax.com>...
> On Wed, 13 Mar 2002 18:37:00 GMT, jrc <jrchaff at mcn.net> wrote:
>
> >Hi - I'm a reasonably experienced programmer. I work in
> >Windows (ME). Thinking to give Python a try, I downloaded
> >v22 and installed. At first, it looks good, but then, I discover
> >it seems impossible to get any scripts to run in the command
> >prompt, using any available documentation whatever. I even
> >have Chris Fehily's book - essentially none of his examples
> >work with scripts from command prompt; yet this is a 2002
> >book . (?!!)
>
> Hi. If you don't have any Python 2.2 dependencies or just
> want to try Python out you might find it less frustrating to
> download ActivePython 2.1. For me(using Win98 2nd Ed.)
> even the Windows Scripting Host worked out of the box.
> I've even been using my COM servers on Win98 using
> ActivePython with no problems at all.
>
On the W2000 box I have to use at work atm, I just installed cygwin
and included python2.2. Gave me a decent cli, and python2.2.
Administrator at TTDEV2 ~
$ pytest.py
Hello World
Administrator at TTDEV2 ~
$ python pytest.py
Hello World
Administrator at TTDEV2 ~
$ ls -l pytest.py
-rwxr-xr-x 1 Administ None 39 Mar 14 10:09 pytest.py
Administrator at TTDEV2 ~
$ cat pytest.py
#!/usr/bin/python
print "Hello World"
Administrator at TTDEV2 ~
$ which python
/usr/bin/python
Andrae Muys
More information about the Python-list
mailing list