diff options
Diffstat (limited to 'talerbank/talerconfig.py')
-rw-r--r-- | talerbank/talerconfig.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/talerbank/talerconfig.py b/talerbank/talerconfig.py index be0e93d..d25358a 100644 --- a/talerbank/talerconfig.py +++ b/talerbank/talerconfig.py @@ -146,11 +146,11 @@ class Entry: except ValueError: raise ConfigurationError("Expected number for option '%s' in section '%s'" % (self.option.upper(), self.section.upper())) - def _getsubst(self, x): - x = self.config()["paths"][x].value + def _getsubst(self, key): + x = self.config()["paths"][key].value if x is not None: return x - x = os.environ.get(x) + x = os.environ.get(key) if x is not None: return x return None |