demoPyMaxExplorer.py

demoPyMaxExplorer.py
1 import sys
2 import os
3 import MaxPlus
4 
5 # Use PyMaxModule
6 old_path = sys.path
7 ScriptPath = os.path.dirname(__file__)
8 sys.path.append(ScriptPath)
9 from PyMaxExplorer.explorer import PyMaxExplorer
10 
11 # This make PyMaxExplorer attached to Max MainWindow
12 tool = PyMaxExplorer(MaxPlus.GetQMaxMainWindow())
13 tool.show()
14 
15 # Revert system path
16 sys.path = old_path