Initially I thought was to test importing some maya specific lib see if it throws any exception, something like this:
'''not in maya'''
Soon I realized our standalone python interpreter (python.exe) has all maya paths included which enable us to utilize maya functionalities externally as well, so above code will never hit the exception.
How do you guys do it? thx!