1

Using Spyder Python(3.4) IDE version 3.0.0 on Windows.

I've set custom include paths via the PYTHONPATH Manager, but upon execution of the static code checker, I'll get "Unable to import [...]" error messages and further errors based on the missing imports.

How to make the static checker follow my custom paths?

Chaos_99
  • 2,284
  • 2
  • 25
  • 29

1 Answers1

1

Include a empty __init__.py in your custom path or modules folder. This enables the spyder static analysis to index your custom path

although __init__.py is not required in Python 3.3+, it's purely a optional workaround

Carlos Cordoba
  • 33,273
  • 10
  • 95
  • 124
Sharan Arumugam
  • 353
  • 6
  • 12