paulwinex / pw_MultiScriptEditor

Python Editor for CG Applications
138 stars 40 forks source link

Could not import module #5

Closed kiryha closed 6 years ago

kiryha commented 6 years ago

Hi, Pasha!

I place package to C:/pw_multiScriptEditor, create shelf tool with a code:

path = 'C:/pw_multiScriptEditor/'
sys.path.append(path)
import pw_multiScriptEditor
pw_multiScriptEditor.showHoudini(name='Multi Script Editor',replacePyPanel=1, hideTitleMenu=0)

And get an error:

Traceback (most recent call last):
  File "multiScriptEditor", line 4, in <module>
ImportError: No module named pw_multiScriptEditor
paulwinex commented 6 years ago

move folder pw_multiScriptEditor to subfolder, for example "scripts" and add this folder to sys.path. Not pw_multiScriptEditor but parent folder.

kiryha commented 6 years ago

That solve, thanks!