I need to import enum class which sits in dir A from some other file which is in dir B. So I have the following:
- enums
-- __init__.py
-- flavors.py
- setUp
-- test.py
flavors.py
from enum import Enum, unique
@unique
class Flavor(Enum):
VANILLA = "vanilia"
CHOCOLATE = "chocolate"
MINT = "mint"
In the test.py I just need to import this enum, but whatever way I chose getting
ModuleNotFoundError: No module named 'enums'