Location to put user configuration files in windows

前端 未结 3 999
礼貌的吻别
礼貌的吻别 2020-12-15 23:55

I\'m writing a python library that has a per-user configuration file that can be edited by the user of the library. The library also generates logging files. On *nix, the

3条回答
  •  太阳男子
    2020-12-16 00:36

    The python appdirs package does a nice job of finding the standard place for application data on various platforms. E.g. for Windows it uses the English XP location:

    C:\Documents and Settings\\Application Data\Local Settings\\
    

    and on Linux it follows the XDG standard:

     ~/.config/
    

提交回复
热议问题