问题 I have a python project in Pycharm, wherein there is a nested Git submodule. Here is the folder structure: my-git-repo git-submodule-repo package1 foo.py bar.py package2 baz.py .gitmodules The imports in git-submodule-repo are structured as follows: foo.py: from package1.bar import some_func However, Pycharm doesn't recognize this and wants me to instead have the following: foo.py: from git-submodule-repo.package1.bar import some_func This is problematic because I don't want to have to change