How do I install a user-specific configuration file with the distribute python -


i'm creating python package, , using distribute package egg. i'd install user-editable configuration file each user of software. best way accomplish this? i'm using python 2.6 , targeting windows platform.

since egg hard edit, doesn't go in egg.

a user-editable configuration file goes in user's home directory or system-wide directory /etc/myapp.

your app should search in number of easy-to-find places. follow linux guidelines tracking down .bashrc file hints on how best this. or follow windows guidelines on system , my documents directoryes.

you write app in 1 of 2 ways.

  1. it can work no config. if -- after searching usual places -- there's no config, still works.

  2. it creates default config in current working directory if can't find 1 anywhere else.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -