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
Post a Comment