reload(myModule) always works just fine for me. I usually just have it in the script editor and highlight it and hit ctrl+enter
On Thu, Sep 13, 2012 at 3:37 PM, jdob <[email protected]> wrote: > Works for me with PyQt4.8.5, Qt 4.7.1 Autodesk (Maya2013 w/Fedora 15). > Depending on how you're using this, it may have something to do with that > interesting little bit of module reloading inside __init__.py tho. While > the desire to iterate quickly (without restarting maya repeatedly) is > understandable, you should not be surprised by crashes and other strange > behavior when running reload(). And any code that has to touch sys.modules > without a really good reason is suspect IMHO. > > You might try simplifying things a bit by moving your __init__.py out of the > way and running something like this just to see if you get any different > behavior: > > sys.path.append('/path/to/testMe/dir') > import testMe_GUI > gui = testMe_GUI.testMe_GUI() > gui.show() > > > > > On Thursday, September 13, 2012 1:06:07 PM UTC-7, Carlo wrote: >> >> So I have attach a sample copy of the result I am getting. One out of >> every 15 times it will work fine, and the rest it will just crash. >=( > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
