Setting the Correct Python Environment

Index of All Documentation » Wing Pro Reference Manual » Source Code Analysis » Helping Wing Analyze Code »


The most common reason that Wing fails to provide useful source code analysis is failure to configure Python Executable and Python Path in Project Properties. This is important so that Wing knows which version of Python your code is designed for, and so it can find any modules that are not on Python's default sys.path.

In cases where code makes changes to sys.path at runtime, it may help to set the file where those changes are made as the main entry point. Wing tries to read sys.path changes and incorporate them into the Python environment used for source code analysis. If this fails, add the appropriate items to Python Path in Project Properties.