I am using Pylance extension in Visual Studio Code. It can give me hints about different function names and their attributes etc. based on the modules that I have imported.
It works fine for modules installed with pip install module. However, it cannot detect functions which I imported from my own file in a custom location. I import the file like this:
import sys, os
file_loc = "D:\\Work\\assets\\includes\\"
sys.path.append(os.path.dirname(file_loc))
from funcs import *
So, Pylance (or Visual Studio Code) cannot show me any information about functions defined in funcs. I also added my folder to the Environment Path variable but that did not help either.
What should I do?
Thanks.