Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Automatically detect user module in the same subfolder of the current script #1822

Closed
fireattack opened this issue Dec 2, 2019 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@fireattack
Copy link

fireattack commented Dec 2, 2019

Currently LS only searches the root for the user module unless you manually add paths to python.autoComplete.extraPaths.

But when editing a file, say, sub/script.py with content like

from module import myfunc

LS should automatically search for modules in folder sub/ (sub/module.py in this case) without manual setting, because Python will always search modules in the directory containing the input script.

Currently it will throw an "unresolved import" warning despite the script can run just fine.

@fireattack fireattack added the enhancement New feature or request label Dec 2, 2019
@jakebailey
Copy link
Member

Duplicate of #1602.

@jakebailey jakebailey added the duplicate This issue or pull request already exists label Dec 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants