While we're shaking things up, move ~/.PKGrc.yaml -> ~/.config/PKG.yaml.
authorW. Trevor King <wking@drexel.edu>
Fri, 16 Mar 2012 03:55:31 +0000 (23:55 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 16 Mar 2012 03:55:31 +0000 (23:55 -0400)
README
h5config/tools.py

diff --git a/README b/README
index 0713bd106cde6d4a03c95145a1dc8881e12c0668..c304260a0125338399b9bee6639d99badef73dfa 100644 (file)
--- 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
 
index 48c683263282df7141679786f1d242f4743e06b1..5843f446fb94f1d4d19b99a8c038ce8c3c6d73c7 100644 (file)
@@ -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')