Python 2.5.1 can't find win32file?

samwyse samwyse at gmail.com
Sun Jul 29 11:09:38 EDT 2007


On Jul 28, 12:14 pm, Jay Loden <pyt... at jayloden.com> wrote:
> samwyse wrote:
> > Interestingly enough, this works:
>
> > C:\Python25>path=%path%;C:\Python25\Lib\site-packages\pywin32-210-
> > py2.5-win32.eg
> > g\pywin32_system32
>
> > C:\Python25>python
> > Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
> > (Intel)] on win32
> > Type "help", "copyright", "credits" or "license" for more information.
> >>>> import win32file
>
> > It looks like the system search path isn't getting updated so that
> > PYWINTYPES25.DLL can be found when win32file.pyd is loaded.
>
> > Anyone have any ideas?
>
> If you just want to update your PATH, you can do that from My Computer -> Properties -> Advanced -> Environment Variables and just update PATH for your user (or all users if you prefer).
>
> -Jay

Well, I was hoping for something a bit more general.  I'd've thought
that anyone loading a DLL would set the Windows path beforehand, and
that it would all be magically taken care of during the installation.
For now, I'm putting this before my 'import' statement:
os.environ['PATH'] += r';C:\Python25\Lib\site-packages\pywin32-210-
py2.5-win32.egg\pywin32_system32'




More information about the Python-list mailing list