Skip to content

Commit

Permalink
Use dnfdragora.yaml as config file name
Browse files Browse the repository at this point in the history
Since the configuration is YAML instead of INI/TOML for the moment,
we will follow the file name conventions of YAML files. Thus, the
file is now "dnfdragora.yaml" instead of "dnfdragora.conf".
  • Loading branch information
Conan-Kudo committed Jan 3, 2017
1 parent 7d2a184 commit b64cc37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions dnfdragora/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class AppConfig() :
''' AppConfig is an application configuration file management
appName ia the application name
configuration file name is appName + ".conf"
configuration file name is appName + ".yaml"
which is searched in these places and order:
1. from environment variable $'AppNme'
2. ~/
Expand All @@ -29,7 +29,7 @@ def __init__(self, appName) :
self.content = None
self.project = appName
self.variable = appName.upper() + "_CONF"
self.fileName = appName + ".conf"
self.fileName = appName + ".yaml"
self.systemDir = "/etc/" + appName

def load(self) :
Expand Down

0 comments on commit b64cc37

Please sign in to comment.