Thanks everyone who answered, it's sorted now :-D
Bernard
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
> Then I add my custom path to the sys.path list (because my user
> permissions do not allow my to put anything in the Lib directory)
and
YOu should be able to create a personal startup script in your
homedir.
I've not done it but I'm sure I remember reading about it, and its
pretty standard LInux
> Sorry if I missed something obvious, but how do I execute a python
> script file in the interpreter? I have "Using the Python
Interpreter" in
> the Python tutorial but not much is said...
You can import a script at the >>> prompt as you would under
Pythonwin.
Or you can run IDLE much as you did
You might want to try IDLE. You can open your file in an editing window and run it from there. I
don't know how to start IDLE on Linux though...you need to run Lib/idlelib/idle.pyw
Kent
Bernard Lebel wrote:
Hi,
Sorry if I missed something obvious, but how do I execute a python
script file in the
m assuming your python is in /usr/bin. And that is a hash mark
> > followed by an exclamation point. This is called "hash bang" in
> > uningo.
> >
> > John Purser
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED
TECTED] On Behalf Of
Bernard Lebel
Sent: Tuesday, January 04, 2005 15:33
To: tutor@python.org
Subject: Re: [Tutor] How to run a script file
Okay sorry I meant once you're in Python.
I'm in Bash console, type Python, enter the Python interpreter.
Then I add my custom path to the
L PROTECTED] On Behalf
Of Patric Michael
Sent: Tuesday, January 04, 2005 14:56
To: tutor@python.org
Subject: Re: [Tutor] How to run a script file
Hi Bernard...
The most basic form is to type "python" followed by the script you want
to run. If your script is not in the system path, you
is in /usr/bin. And that is a hash
mark followed by an exclamation point. This is called "hash bang" in
uningo.
John Purser
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Patric Michael
Sent: Tuesday, January 04, 2005 14:56
To: tutor@python.or
Hi Bernard...
The most basic form is to type "python" followed by the script you want
to run. If your script is not in the system path, you'll either need to cd to
the directory, or give a full pathname: (the pythonpath doesn't come into
play until the interperter is running.
python /usr/loca
Hi,
Sorry if I missed something obvious, but how do I execute a python
script file in the interpreter? I have "Using the Python Interpreter" in
the Python tutorial but not much is said...
(this might be a lame quesiton but so far I always used either the
PythonWin interpreter wich has the Import
10 matches
Mail list logo