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.
it can work no config. if -- after searching usual places -- there's no config, still works.
it creates default config in current working directory if can't find 1 anywhere else.
Comments
Post a Comment