06-02-2020, 10:50 AM
Hi,
I let run TACTIC in a VM and can access it via Webbrowser.
I get this msg in Maya executing the drop_install.mel
global proc dummy_func_to_get_path(){}
string $script_path = `whatIs dummy_func_to_get_path`;
python("drop_path= \"" + $script_path + "\"[24:].replace('drop_install.mel','')\nimport sys\nif drop_path not in sys.path:\n sys.path.append(drop_path)\nimport shelf_install as si\nreload(si)\nsi.begin_shelf_install()");
drop_path= "Mel procedure entered interactively."[24:].replace('drop_install.mel','')
import sys
if drop_path not in sys.path:
sys.path.append(drop_path)
import shelf_install as si
reload(si)
si.begin_shelf_install()
# Error: line 4: ImportError: file <maya console> line 5: No module named shelf_install #
and this for shelf_install.py
# <maya console>:307: SyntaxWarning: name 'main_window' is assigned to before global declaration
# Error: NameError: file <maya console> line 16: global name '__file__' is not defined #
I open the both scripts in Maya and let it run
What do I wrong?
I let run TACTIC in a VM and can access it via Webbrowser.
I get this msg in Maya executing the drop_install.mel
global proc dummy_func_to_get_path(){}
string $script_path = `whatIs dummy_func_to_get_path`;
python("drop_path= \"" + $script_path + "\"[24:].replace('drop_install.mel','')\nimport sys\nif drop_path not in sys.path:\n sys.path.append(drop_path)\nimport shelf_install as si\nreload(si)\nsi.begin_shelf_install()");
drop_path= "Mel procedure entered interactively."[24:].replace('drop_install.mel','')
import sys
if drop_path not in sys.path:
sys.path.append(drop_path)
import shelf_install as si
reload(si)
si.begin_shelf_install()
# Error: line 4: ImportError: file <maya console> line 5: No module named shelf_install #
and this for shelf_install.py
# <maya console>:307: SyntaxWarning: name 'main_window' is assigned to before global declaration
# Error: NameError: file <maya console> line 16: global name '__file__' is not defined #
I open the both scripts in Maya and let it run
What do I wrong?