Not installing interpreter on local machine

David Bolen db3l at fitlinxx.com
Tue Aug 7 06:51:11 CEST 2001


shezafd at yahoo.com (Daphna Shezaf) writes:

> > The only piece that I've had trouble doing this way is win32com
> > support since it does some strange things with its module definitions
> > (using the local registry) and has some dependency on some core DLLs
> > being in the system directory.  Or at least I haven't figured out how
> > to cleanly avoid that yet.
> 
> Thanks, it seems to be working the way I want.
> Did you try using other win32.. stuff? I'd like to have some message
> boxes using win32ui, for example, and it doesn't seem to work.

Hmm - what sort of error or problem did you get?  I probably haven't
tried using win32ui (I use wxPython for our GUI stuff), but I know I've
used most of the non-GUI portions of win32all ok.

Ah wait, I might know - you want to make sure that the win32 package
directories are part of your Python path, even when your network
Python installation might not be by default.  Normally the win32all
package gets things added to sys.path via (again - ugh) some local
registry changes, which you don't have when running across the
network.

But you can cover this with a .pth file in the root of your network
Python installation.  I just call mine "python.pth" and among some
site-specific stuff also have the lines:

    win32
    win32\lib

in it to cover the win32 pieces.  I think you'd also want to include
the line:

    pythonwin

to include the win32ui stuff.

Sorry about that - I think I forgot about that step (having set it up
a while back).

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list