My directory looks something like
Users
|-Me
|----projectDirectory
|-------file.py
|----Venv\site-packages\
|-------library.py
|-OtherUser\AppData\Local\Programs\Python\Python37\Lib\library.py
file.py tries to import a function from library.py, like so:
from library import Foo
...But, for some reason, it appears to be importing from the OtherUser directory, which leads to problems. I'm using PyCharm, and my configuration is set up correctly to use the interpreter in the "Me" directory. When I middle-click (which brings me to the file being imported from), it takes me to the OtherUser directory. Error messages print that the error is happening in the OtherUser directory.
Despite all this, OTHER files from the "Me" directory are importing from the correct Lib directory. I made sure that the library.py file exists in the venv directory, yet for some reason this file keeps importing from a different user directory.
Does anyone have any suggestions for things I can check?
EDIT: sys.path prints a long list of strings, some go to the projectDirectory, some go to the OtherUser Python directory, and some go to JetBrains.