TRying to import files from my folder not pythons lib folder

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Sep 24 04:00:42 EDT 2007


En Sun, 23 Sep 2007 22:01:39 -0300, Luis M. González <luismgz at gmail.com>  
escribi�:

> This is exactly what I did, but I have a new problem now:
> After seting PYTHONPATH I'm no longer able to start IDLE from the
> start menu.
> It seems the system cannot find the file.
> But if I eliminate PYTHONPATH, everything works as it used to.
>
> I set PYTHONPATH because 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




More information about the Python-list mailing list