I work under OS Linux , IDE PYCharm , Python3.5 .

The problem is this: when writing your own modules it is impossible to connect them in another script so that introspection of the code and auto-completion would occur.

In other words: I connect the built-in module, it is displayed in the auto-popup line, I can work with its methods and variables through auto-duplication; if I try to connect the module of my own writing, which is in the same folder with the edited script, the IDE does not see it in the auto-completion, emphasizes red, it is impossible to access the module's contents.

However, at startup, the script runs without errors.

How is it possible to make IDE PYCharm see self-written modules?

    1 answer 1

    The problem is solved as follows:

    In the project manager, you need to find a folder with your own modules; click on it with the right mouse button and select in the context menu: Mark Directory as -> Sources Root

    The IDE will immediately see the written modules, introspection and autodopoly begin to function normally.