TRying to import files from my folder not pythons lib folder

Luis M. González luismgz at gmail.com
Mon Sep 24 21:36:38 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

I solved the problem!
You were right. It seems there was a module that was causing problems,
although I don't know which one...
I just moved all the .py files on my desktop to a new folder, and
everything worked just fine.
The list of .py files in my desktop were:

'code.py', 'code2.py', 'code22.py', 'code3.py', 'draft.py',
'flups.py', 'forma.py', 'fx.py', 'nuevo.py', 'nwind', 'ops',
'pages.py', 'qqq.py', 'sample.py', 'ses.py', 'sess.py', 'sess2.py',
'soup.py', 'style.py', 'test_session.py', 'up.py', 'up2.py', 'ww.py',
'xx.pyw', 'xx.rsrc.py', 'xxxx.py'

Any idea of which one was causing trouble?

Gracias, che!
Luis




More information about the Python-list mailing list