Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've set an environment variable to point to a scripts folder where i placed userSetup.py along with an __init__.py however the script never seems to run. Here is my configuration.
The following env var is set:
MAYA_SCRIPT_PATH = 'Q:Studio\pipeline\apps\maya\scripts'
In this folder i have a python script userSetup.py
import os import sys import maya.cmds as cmds
import maya.mel as mel
from maya.utils import executeDeferred
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?
Solved! Go to Solution.