pilat / vscode-importmagic

MIT License
36 stars 7 forks source link

Allow imports using absolute paths #18

Open HitLuca opened 5 years ago

HitLuca commented 5 years ago

importmagic does a great work in importing my modules, but in my current setup, imports need to be absolute. Can we have a way to set importmagic to import using absolute paths, maybe via settings config?

My issue arises from the fact that I am developing a local python package along with a project using it. If my imports are relative, the project using the package will not be able to run the tests. Changing them to absolute fixes the issue, requiring me to append the root module every time after using your plugin!

liamgens commented 4 years ago

Suffering from the same issue, this would be great to have

HitLuca commented 4 years ago

Any feedback on this?

sepharg commented 4 years ago

same here, would like this feature as well