that was just an example. we've done for MAYA_SCRIPT_PATH and for mel is was picking up just fine from the environ edit, but for an AE template file, it failed unless we appended the sys path.
On Fri, Dec 6, 2013 at 12:16 PM, Justin Israel <[email protected]>wrote: > Because an active python interpreter process isn't making use of the > PYTHONPATH environment variable after the fact. It is used on startup to > ultimately derive the sys.path > There are a number of things that actually contribute to the final > sys.path. > > Modifying the PYTHONPATH on os.environ would only have an effect on the > environment of a subprocess. > > > On Dec 7, 2013, at 9:03 AM, Todd Widup wrote: > > ive noticed this a few times and I am trying to track down a WHY > > myPath = "someDirectoryPath" > os.environ["PYTHONPATH"] = "%s;%s" % (myPath, os.environ["PYTHONPATH"]) > # works occassionally > > sys.path.append(myPath) > # works every time > > any ideas or suggestions as to why updating the environ wouldn't work all > the time? > > > > -- > Todd Widup > Creature TD / Technical Artist > [email protected] > [email protected] > www.toddwidup.com > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CABBPk35R3O1iT%2BFK55-PKCOd5WKbizRWZM%2BBYrrxeigJzSK3WQ%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/21FF88DF-3720-4B8F-ADE6-C5D667A0E5BB%40gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- Todd Widup Creature TD / Technical Artist [email protected] [email protected] www.toddwidup.com -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABBPk36xiov1iijBo%3DkM04DfUxyO5n8wALY2RrD1Mc38j%3Da%2BhQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
