Skip to content Skip to sidebar Skip to footer

Import Neighboring Module In Python

I have the following folder structure to keep my unit testing files separate from the actual module they test. proj/ foo/ __init__.py bar.py tests/ test.py How can

Solution 1:

This should work

from .. import foo

Post a Comment for "Import Neighboring Module In Python"