From: W. Trevor King Date: Fri, 16 Mar 2012 03:55:31 +0000 (-0400) Subject: While we're shaking things up, move ~/.PKGrc.yaml -> ~/.config/PKG.yaml. X-Git-Tag: v0.2~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0a56529e6d1c689476e23e01ef23772a8bca6e73;p=h5config.git While we're shaking things up, move ~/.PKGrc.yaml -> ~/.config/PKG.yaml. --- diff --git a/README b/README index 0713bd1..c304260 100644 --- a/README +++ b/README @@ -41,7 +41,7 @@ and user-wide configuration files. For example, the pypiezo_ package uses h5config to automatically detect and load the following config file:: - $ cat ~/.pypiezorc.yaml + $ cat ~/.config/pypiezo.yaml log-level: debug matplotlib: no diff --git a/h5config/tools.py b/h5config/tools.py index 48c6832..5843f44 100644 --- a/h5config/tools.py +++ b/h5config/tools.py @@ -94,7 +94,7 @@ class PackageConfig (_config.Config): def _base_paths(self): user_basepath = _os_path.join( - _os_path.expanduser('~'), '.{}rc'.format(self._package_name)) + _os_path.expanduser('~'), '.config', self._package_name) system_basepath = _os_path.join('/etc', self._package_name, 'config') distributed_basepath = _os_path.join( '/usr', 'share', self._package_name, 'config')