Hi,
import win32api helps run win32api.getUserName(). this works from a python shell outside maya but the moment it comes in maya, it gives an error.
import win32api < --- command name
# Error: No module named win32api
# Traceback (most recent call last):
# File "", line 1, in ?
# ImportError: No module named win32api #
how if so it is possible to run a win32api from within maya.
My point is I need login user name from within maya. Alternatively, how may I run maya.cmds from a python shell.
BRgds,
kNish