Where to put a config file for a compiled Python script?

后端 未结 4 1915
囚心锁ツ
囚心锁ツ 2021-01-21 02:51

This is similar to Where to put a configuration file in Python?, but I\'m asking about scripts compiled/frozen with py2exe or similar on Windows systems. (Namely, this one: Wha

4条回答
  •  囚心锁ツ
    2021-01-21 03:24

    You can use the appdirs module to determine the appropriate folder for user data.

提交回复
热议问题