python - git link to a submodule file import problems -
i added file project symlink file in git project. followed steps in answer https://stackoverflow.com/a/27770463/3573182 add other project submodule in project.
now link added file has broken imports. let's project a's structure (including structure of submodule project b):
project a:
- package1:
-- link.py
- submodule-of-project-b
-- package1:
--- linked_file.py
-- package2
-- package3
now 'linked_file.py' has imports 'package2' package inside project b. because project doesn't have package imports inside link broken , cannot run project a. know can change imports import package2
import submodule.package2
. because link, think change import line in original file in project b make broken there.
i used link because in future need update in original file developers reflected in project.
Comments
Post a Comment