import python modules with the same name

前端 未结 1 1376
Happy的楠姐
Happy的楠姐 2020-12-16 20:38

I have several python projects and they all have a conf package:

/some_folder/project_1/
  conf/
    __init__.py
    some_source_file.py

/another_folder/pro         


        
1条回答
  •  有刺的猬
    2020-12-16 21:22

    No. You will need to either rename one of them or turn the project directory into a package and import via that.

    0 讨论(0)
提交回复
热议问题