Location to put user configuration files in windows

前端 未结 3 995
礼貌的吻别
礼貌的吻别 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条回答
  •  Happy的楠姐
    2020-12-16 00:39

    On windows the user is not expected to configure an application using editable config files so there is no standard.
    The standard for configuration which is editable using a GUI is the registry.

    If you're using QT (or PyQT?) then you can use QSettings which provide an abstraction layer. On Linux it uses a config file and on windows is writes to the registry.

提交回复
热议问题