I'm trying to import a custom module but for some reason I can't get it to work and I'm getting an ImportError.
My directory structure is like so:
MyProject
  - MyProject
    - bin
      scraper.py
    - myproject
      __init__.py
      CustomModule.py
  - web
    index.html
  - venv
I'm attempting to import CustomModule.py from scraper.py. Ideally without having to set any environment variables, or using sys.path.
This is what I've tried:
import CustomModule
from myproject import CustomModule
from ..myproject import CustomModule
Is this possible?