Code completion not working

41 views
Skip to first unread message

frgoo

unread,
Nov 8, 2024, 11:37:41 AM11/8/24
to PyScripter
Hi.

I have the problem that in one constellation code completion is not working.

Directory structure is as follows:

common
   moduleA.py
   moduleB.py
client
   __init__.py
server
   __init__.py

When I import a module from within "client" or "server" directory with "from common.moduleA import *" code completing is not working, whereas program is running as expected.

Any idea what's wrong?
Thanks for your help.

PyScripter

unread,
Nov 8, 2024, 11:45:28 AM11/8/24
to PyScripter
Does adding an empty __init__.py to the common folder help?

frgoo

unread,
Nov 8, 2024, 11:52:20 AM11/8/24
to PyScripter
Indeed that did the trick.
Not exactly sure why but it works.

Thanks for your fast help

BTW: Best IDE for Python IMHO

PyScripter

unread,
Nov 8, 2024, 11:53:40 AM11/8/24
to PyScripter
See  6. Modules — Python 3.13.0 documentation for an explanation.

frgoo

unread,
Nov 8, 2024, 12:07:47 PM11/8/24
to PyScripter
Got it.
THX
Reply all
Reply to author
Forward
0 new messages