TRying to import files from my folder not pythons lib folder

Luis M. González luismgz at gmail.com
Mon Sep 24 21:24:39 EDT 2007


On Sep 24, 5:00 am, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> En Sun, 23 Sep 2007 22:01:39 -0300, Luis M. González <luis... at gmail.com>
> escribi?:
>
> > This is exactly what I did, but I have a new problem now:
> > After setingPYTHONPATHI'm no longer able to start IDLE from the
> > start menu.
> > It seems the system cannot find the file.
> > But if I eliminatePYTHONPATH, everything works as it used to.
>
> > I setPYTHONPATHbecause I wanted to import any existing file in my
> > desktop without having to use sys.path.append...
> > It works when using the command line but strangely, something get
> > messed up with IDLE.
> > Any hint?
>
> Perhaps a python module in your desktop has a name conflicting with a
> standard module?
>
> - On the Start menu, navigate to the IDLE item, but dont click it.
> - RIGHT click on it, and select Properties. Copy the Destination field.
> Should be something like "C:\Python25\Lib\idlelib\idle.bat"
> - Open a cmd window (console), paste the above text and press Enter.
> - Almost certainly you'll get an error; post here the full error and
> traceback.
>
> --
> Gabriel Genellina

If I paste the destination path in the command window, it simply
disappears before I can read any error message.
If I enter "cmd" and then the destination path, I get this:

C:\Documents and Settings\Administrador>C:\Python25\Lib\idlelib
\idle.bat
El sistema no puede encontrar el archivo idle.pyw.

Any hint?

Luis




More information about the Python-list mailing list