On Fri, Mar 18, 2011 at 10:56, hapgilmore <[email protected]> wrote:
> I'm attempting to import the win32api module. (Win7 64, Maya 2011) > > 1) Downloaded the installer here > http://sourceforge.net/projects/pywin32/files/pywin32/Build216/ > 2) Installed it into a clean Python26. > 3) Copied all the added files from site-packages into a folder added > to Maya's PYTHONPATH > 4) in maya, import win32api > 5) # Error: ImportError: file <maya console> line 1: No module named > win32api # > > It's not a PYTHONPATH issue, as I can import other modules from the > same folder. > Any other suggestions? > > -Ian > > -- > http://groups.google.com/group/python_inside_maya > I have always accomplished this by appending the system path in the code before calling any external packages. It is best to maintain a separate install of python 2.6 and any modules you might wish to use. Try this: import sys sys.path.append('C:/Python26/Lib/site-packages/win32') import win32api -jesse -- http://groups.google.com/group/python_inside_maya
