Maya2008 win32api 64-bit python

How can I successfully run import win32apion the 64-bit Maya version of 2008?

The following error has occurred:

Error: No module named win32api
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named win32api

I need to get the mouse cursor position in python so that I can position the window in that position. Is there any other way to get it?

Yours faithfully,

Knysh

+3
source share
1 answer

Maya uses its own Python installation. You need to add the path where pywin32 is installed anyway ... you can create a .pth file in

C: \ Program Files \ Autodesk \ Maya2009 \ Python \ Lib \ site packages \

, , , 64- pywin32.

:

http://www.rtrowbridge.com/blog/2008/11/27/maya-python-import-scripts/

Edit:

, , PyWin32 Python25 x64:

AMD64 Windows Python 2.6 ( Python 2.5 , ). , .

http://sourceforge.net/project/shownotes.php?release_id=603349

+1

Source: https://habr.com/ru/post/1742066/