'Maya userSetup.py not executing on startup from network location using env vars
I've set an environment variable to point to a scripts folder where i placed userSetup.py however the script never seems to run. Here is my configuration.
following env var is set:
MAYA_SCRIPT_PATH = 'Q:Studio\pipeline\apps\maya\scripts'
In this folder i have a python script userSetup.py
################################################################################
# Imports
################################################################################
import os
import sys
def main():
print('----------main----------')
def init():
print('----------executeDeferred----------')
main()
executeDeferred(init)
When i launch maya i would expect it to show the print statement for the deferred fn. however nothing ever shows. What's wrong here?
keep in mind the users could have local usersetup.py files, however this is a py file so it should still execute.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
