Re: Import, how to change sys.path on Windows, and module naming?

2008-03-03 Thread bockman
On 1 Mar, 20:17, Steve Holden [EMAIL PROTECTED] wrote: Jeremy Nicoll - news posts wrote: Jeremy Nicoll - news posts [EMAIL PROTECTED] wrote: If I understand correctly, when I import something under Windows, Python searches the directory that the executing script was loaded from, then

Re: Import, how to change sys.path on Windows, and module naming?

2008-03-03 Thread bockman
On 3 Mar, 17:12, [EMAIL PROTECTED] wrote: (unless of course I _did_ miss something and my guess is completely wrong; I should have done some experiment before posting, but I'm too lazy for that). Ciao --- FB- Nascondi testo tra virgolette - - Mostra testo tra virgolette - Oops... I

Re: Import, how to change sys.path on Windows, and module naming?

2008-03-03 Thread Gabriel Genellina
En Mon, 03 Mar 2008 14:39:20 -0200, [EMAIL PROTECTED] escribió: On 3 Mar, 17:12, [EMAIL PROTECTED] wrote: Oops... I tried removing python25.zip from sys.path, and I can still import packages from zip files ... Yes, python25.zip is in sys.path by default, not to enable zipimport (which is

Re: Import, how to change sys.path on Windows, and module naming?

2008-03-02 Thread Tim Roberts
Jeremy Nicoll - news posts [EMAIL PROTECTED] wrote: Does every Windows user have: 2 C:\WINDOWS\system32\python25.zip in their sys.path? What's the point of having a zip in the path? Starting with Python 2.4, Python is able to import modules directly from a zip, as if it were a directory. It's

Import, how to change sys.path on Windows, and module naming?

2008-03-01 Thread Jeremy Nicoll - news posts
If I understand correctly, when I import something under Windows, Python searches the directory that the executing script was loaded from, then other directories as specified in sys.path. I assume there are standard locations inside my installed Python - in my case inside: C:\Program

Re: Import, how to change sys.path on Windows, and module naming?

2008-03-01 Thread Steve Holden
Jeremy Nicoll - news posts wrote: If I understand correctly, when I import something under Windows, Python searches the directory that the executing script was loaded from, then other directories as specified in sys.path. Technically, I believe it just puts the script's directory at the start

Re: Import, how to change sys.path on Windows, and module naming?

2008-03-01 Thread Jeremy Nicoll - news posts
Jeremy Nicoll - news posts [EMAIL PROTECTED] wrote: If I understand correctly, when I import something under Windows, Python searches the directory that the executing script was loaded from, then other directories as specified in sys.path. Sorry to followup my own question, but I ran for

Re: Import, how to change sys.path on Windows, and module naming?

2008-03-01 Thread Steve Holden
Jeremy Nicoll - news posts wrote: Jeremy Nicoll - news posts [EMAIL PROTECTED] wrote: If I understand correctly, when I import something under Windows, Python searches the directory that the executing script was loaded from, then other directories as specified in sys.path. Sorry to