run activepython v2.1 from a folder?

newgene newgene at bigfoot.com
Mon Jul 2 16:59:24 EDT 2001


I'am trying to run activepython v2.1 from a folder on my zip disc so
that I can use it at the public PCs. I can not install activepython
successfully without the administrator previledge.
First, I put all possible pathes into "PYTHONPATH", and use a bat file
to set it before running pythonwin.exe.
       This is my batch file(pywin.bat):

@set PYTHONPATH=d:\python21;D:\Python21\Bio;D:\Python21\DLLs;D:\Python21\Lib;D:\Python21\libs;D:\Python21\PPM;D:\Python21\Pythonwin;D:\Python21\win32;D:\Python21\win32\Lib;d:\python21\lib\plat-win;d:\python21\lib\lib-tk;
@start D:\Python21\Pythonwin\pythonwin.exe
@exit

Second,I copied three dll files( python21.dll,pythoncom21.dll,
PyWinTypes21.dll) from system32 into my folder(d:\python21). Then I
can import win32ui under command line(python.exe).

When I ran pywin.bat, pythonwin GUI interface appears, but raises a
error as:

  File "e:\python21\pythonwin\pywin\framework\intpyapp.py", line 163,
in InitInstance
    import interact
  File "e:\python21\pythonwin\pywin\framework\interact.py", line 26,
in ?
    import winout
  File "d:\python21\pythonwin\pywin\framework\winout.py", line 26, in
?
    from pywintypes import UnicodeType
exceptions.ImportError: No module named pywintypes

Is it possible to solve this problem and run the activepython v2.1
from a folder independent on system registry?

Thank you

Newgene



More information about the Python-list mailing list