Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #108 from nkabir/master
Browse files Browse the repository at this point in the history
Fix issue with environmental variables.
  • Loading branch information
nkabir committed Dec 15, 2017
2 parents 8b0f098 + 56fbc42 commit 1d1d8e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lxdock/conf/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ def from_base_dir(cls, base_dir='.'):
# config is initialized from a subfolder of the project.
cwd = os.getcwd()
os.chdir(config.homedir)

# Performs variable substitution / interpolation in the configuration values.
config.interpolate()

try:
schema(config._dict)
except Invalid as e:
Expand All @@ -80,9 +84,6 @@ def from_base_dir(cls, base_dir='.'):
finally:
os.chdir(cwd)

# Performs variable substitution / interpolation in the configuration values.
config.interpolate()

config.extract_config_from_dict()

return config
Expand Down

0 comments on commit 1d1d8e8

Please sign in to comment.