|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Getting started with PythonI can't.
>>> import file.py is all very well if the interpreter knows where file.py is. I want to do this : >>> import /directory1/directory2/file.py Is this not possible ? |
|
|
|
|
|
Re: Getting started with PythonHave you tried this ?
import sys sys.path.append('/directory1/directory2') import file.py j On Fri, May 16, 2008 at 10:20 AM, Moishy Gluck <moishyyehuda@...> wrote:
_______________________________________________ Tutor maillist - Tutor@... http://mail.python.org/mailman/listinfo/tutor |
|
|
Re: Getting started with PythonIsn't it
import file
not
import file.py
or has that changed in recent
versions?
Mike
_______________________________________________ Tutor maillist - Tutor@... http://mail.python.org/mailman/listinfo/tutor |
|
|
Re: Getting started with PythonYour right, typo :-)
On Fri, May 16, 2008 at 10:57 AM, Hansen, Mike <Mike.Hansen@...> wrote:
_______________________________________________ Tutor maillist - Tutor@... http://mail.python.org/mailman/listinfo/tutor |
| Free Forum Powered by Nabble | Forum Help |