Hello,
I am trying to run a script in python where there is an own created module “utilities”, but when trying to import in another module is not recognized.
In this case please check the red shapes for the command and the result.
I attached a screenshot with the folder structure. Not sure why is not recognized. Any help is welcomed!
The short answer is that your Drill.....-master directory is not in your Python search path ($PYTHONPATH). There is probably a VSCode setting for this.
In order to import something, it must appear in the directories of the import search path (the sys.path variable as viewed from inside Python).
See this stack overflow answer: Visual Studio Code - How to add multiple paths to python path? - Stack Overflow
You want to put your project directory in the PYTHONPATH environment variable.
1 Like
Thank you Cameron. I took it from GitHub and not sure what setting they had to run it.
