How to relative import a script in another folder at the same directory level?

86 Views Asked by At

So i want to import a script in other folder on the same directory level.

It's like this:

project
   ├── src
         ├── basic - __init__.py
         └── physics - __init__.py

I want to import a class from basic file, into the physics file.

Edit

I settled to just rename this files to basic.py and physics.py and placed them in the same folder so the directory looks like this now:

project
   ├── src
         ├── basic.py
         └── physics.py
0

There are 0 best solutions below