Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
Mattias Andrée 2013-12-17 18:01:22 +01:00
parent 9405806e7c
commit 38942cc2f0

View file

@ -56,7 +56,7 @@ class Ponysay():
os.environ['HOME'] = self.HOME = os.path.expanduser('~') os.environ['HOME'] = self.HOME = os.path.expanduser('~')
## Change system enviroment variables with ponysayrc ## Load extension and configurations via ponysayrc
for file in ('$XDG_CONFIG_HOME/ponysay/ponysayrc', '$HOME/.config/ponysay/ponysayrc', '$HOME/.ponysayrc', '/etc/ponysayrc'): for file in ('$XDG_CONFIG_HOME/ponysay/ponysayrc', '$HOME/.config/ponysay/ponysayrc', '$HOME/.ponysayrc', '/etc/ponysayrc'):
file = Ponysay.__parseFile(file) file = Ponysay.__parseFile(file)
if (file is not None) and os.path.exists(file): if (file is not None) and os.path.exists(file):