Hi, sorry I didn't quite understand how your tool behaves ? ;-)

Rémi Deletrain wrote:
Hi,

If ever it can help you. It's not a cleaned script but it works
https://github.com/RDelet/Maya_Tools/blob/master/Divers_Tools/plugin_manager.py

I create this tool for laod all my scripts when maya loading.
It's possible to reload all your scripts

for exemple with your tool in D:\work\Maya_Tools
--------------------------------------------------
sys.path.insert(0, r'D:\Work')
from Maya_Tools.divers_tools.plugin_manager import Plugin_Manager

Maya_Tools = r'D:\work'

Plugin_Manager.window_close_all_pyside() # Only work with QMainWindow
Plugin_Manager.modules_delete(['Maya_Tools'], ['plugin_manager', 'AssetImporter'])
Plugin_Manager.modules_load([Maya_Tools, ])
--------------------------------------------------

Do not forget the __init__.py file in your Scripts folder : D:\work\Maya_Tools\__init__.py if you don't have this file in your directory Python will fail to load the scripts

As the saying everyone if no mistake in the path there should not be any problem in your script loads.
--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/8SgJdsUZ0b8/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/d11a55ed-16a7-49ea-9f90-2e8635f29895%40googlegroups.com <https://groups.google.com/d/msgid/python_inside_maya/d11a55ed-16a7-49ea-9f90-2e8635f29895%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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/5624F50C.7060201%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to