Where to put a configuration file in Python?

前端 未结 7 1729
孤独总比滥情好
孤独总比滥情好 2020-12-22 17:52

In development mode, I have the following directory tree :

| my_project/
| setup.py
| my_project/
    | __init__.py
    | main.py
    | conf/
        | mypro         


        
相关标签:
7条回答
  • 2020-12-22 18:23

    The appdirs package does a nice job on finding the standard place for installed apps on various platforms. I wonder if extending it to discover or allow some sort of "uninstalled" status for developers would make sense.

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