For applications needing user config files at a new location (not sure
about /dbus-1/services), what I currently find suitable is this:
1. Store the default config files at myapp.module.conf namespace (==
site-packages/myapp/module/conf/foo.conf,bar/baz.conf,etc..)
2. When the application is first run, check for ~/.local (or APPDATA on
Windows) - and if user config directory-or-files is not present, copy them
from the namespace location to ~/.local.
3. Next time the app is run, the copied config files can be used; the user
can also edit them.
-srid
On Mon, 10 Aug 2009 13:49:49 -0700, David Laban <alsu...@gmail.com> wrote:
Basically, I can install files into:
$HOME/.local/share/dbus-1/services
or
/usr/local/share/dbus-1/services
or
/usr/share/dbus-1/services
(or anywhere in xdg.BaseDirectory.xdg_data_dirs really)
but I want to pick the most appropriate place, taking into account the
--prefix option to setup.py, or the root of the virtualenv/whatever.
What is the most portable way to to this?
David.
_______________________________________________
Distutils-SIG maillist - Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
_______________________________________________
Distutils-SIG maillist - Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig