From 0a56529e6d1c689476e23e01ef23772a8bca6e73 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 15 Mar 2012 23:55:31 -0400 Subject: [PATCH] While we're shaking things up, move ~/.PKGrc.yaml -> ~/.config/PKG.yaml. --- README | 2 +- h5config/tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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') -- 2.26.2