Advertisement
Guest User

pluginFactory.py

a guest
Jul 31st, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1.  
  2. class BaseRun(object):
  3. def runPlugin(self):
  4. #plugin start
  5. pass
  6.  
  7. class toolBox_UI(BaseRun):
  8. def runPlugin(self):
  9. # override this here
  10. import __toolBox.toolBox_UI as toolBox_load
  11. reload(toolBox_load)
  12.  
  13. if __name__ == "__main__":
  14. try:
  15. _toolBoxUI.close()
  16. except:
  17. pass
  18. _toolBoxUI = toolBox_load.toolBox_UI()
  19. _toolBoxUI.show()
  20. ##
  21. class plugin_2_UI(BaseRun):
  22. def runPlugin(self):
  23. # override this here
  24. import __plugin_2.plugin_2_UI as plugin_2_load
  25. reload(plugin_2_load)
  26.  
  27. if __name__ == "__main__":
  28. try:
  29. _plugin_2UI.close()
  30. except:
  31. pass
  32. _plugin_2UI = plugin_2_load.plugin_2_UI()
  33. _plugin_2UI.show()
  34. ##
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement