Skip to content

Commit

Permalink
Fix #277
Browse files Browse the repository at this point in the history
  • Loading branch information
lucventurini committed Apr 7, 2020
1 parent e6f3be6 commit 4ab8cf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Mikado/subprograms/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import tempfile
from ..utilities.log_utils import create_null_logger, create_default_logger
import tomlkit
import toml
try:
from yaml import CSafeLoader as yLoader
except ImportError:
Expand Down Expand Up @@ -174,8 +175,10 @@ def create_config(args):
if args.external is not None:
if args.external.endswith("json"):
loader = json.load
else:
elif args.external.endswith("yaml"):
loader = functools.partial(yaml.load, Loader=yLoader)
else:
loader = toml.load
with open(args.external) as external:
external_conf = loader(external)
# Overwrite values specific to Mikado
Expand Down

0 comments on commit 4ab8cf5

Please sign in to comment.