I have the following folder structure:
Python_Game/src/domain/boards.py
Python_Game/tests/test.py
I'm trying to import function boards.py to test.py.
I've tried:
import sys
sys.path.append('../src')
import domain
from domain import boards
and a lot of other attempts (including tipps in StackOverflow too) but so far I couldn't manage to import properly . Please give me some piece of advice.
I am working with Python 3.7.4, domain and tests folders contains __init__.py
file.
import ..src.domain.boards
? – ICanKindOfCode