AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Does rehash work when altering the PYTHONPATH via putenv?
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

Does rehash work when altering the PYTHONPATH via putenv?
Rate this thread
 
38379
 
Permlink of this thread  
avatar
  • Total Posts: 2
  • Joined: 20 July 2008 12:40 AM

does rehash affect python module importing like it does mel sourcing? Is there an equivalent python command to rehash I’m missing?

I can put the path into the ENV before a maya start it works peachy; however, if using putenv to add the path, followed by a rehash cmd, maya cannot locate the python modules.



Replies: 1
/img/forum/light/default_avatar.png

rehash is for mel scripts only.
The function you want is reload:
http://docs.python.org/library/functions.html?#reload

Author: cgrebeld

Replied: 11 January 2010 12:18 PM