python - gVim ImportErrror: module not found, even though module is in same folder as script -


i using gvim windows 7.

i trying run python script using pyfile % command, every time so, importerror: no module named libtcodpy

checking location of libtcodpy, indeed in same folder script trying run. furthermore, running program python ide works fine.

what doing wrong?

vim not automatically search current script's directory imports, configured ones (cp. :help python-_get_paths), , current working directory.

so, either need configure current script's path, or :cd %:h (alternatively automatically via :set autochdir).


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -