79240762

Date: 2024-12-01 01:34:05
Score: 1
Natty:
Report link

Since you do have a proper package structure layout e.g. with __init__.py files you should be able to use a relative import i.e.:

from ...common.file1 import func1

The dots (at the start, in the from statement) in a relative import go up parent directories or 'levels'

One dot is the current directory, additional dots goes however many parent directories above the current directory as there are dots.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ben Tonks