sublimetext2 - trouble importing folder in python in sublime-text 2 -
I am using Sublime-Lesson 2 for Python and importing a folder as a module . I put a __ init __.py
in the folder with that content:
__ All __ = ["imsave2", "model_io", "load_data" , "Utils"];
inside the folder where "imsave2", "model_io", "load_data", "utils"
are .py
files. This system works when using the Python shell, to make the folder importable, by adding the user settings
in sublime-lesson-2:
"Default_extend_env": {"PYTHONPATH": "/ home / ABC /" / Home / ABC / Vision / Dataset: / Home / ABC / Vision / Code "},
/ Pre>The folder / module where I want to import is
/ home / abc / vision / code / module1
. Although the excellent-text2 is still not in my modules Only you can see.
Comments
Post a Comment