Skip to content
Advertisement

VSCode IntelliSense not working for modules when using sys.path.append to add paths

I am adding path that are higher up or in a sibling directories using following code. And I am not getting IntelliSense for modules inside these folders. Any idea how to get this IntelliSense?

enter image description here

enter image description here

enter image description here

The function colorPrint is defined inside LoggingHelper module in Utility folder.

Advertisement

Answer

I solved it as following. I am adding parent folder and resolving all modules inside the parent folder. This way, I get IntelliSense

enter image description here

enter image description here

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement