Skip to content

Commit

Permalink
Move the config into its own class
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders committed Apr 9, 2018
1 parent 509d7ab commit af67827
Show file tree
Hide file tree
Showing 9 changed files with 734 additions and 317 deletions.
4 changes: 1 addition & 3 deletions tools/ci/make_hosts_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from ..localpaths import repo_root

from ..serve.serve import load_config, normalise_config, make_hosts_file
from ..serve.serve import load_config, make_hosts_file

def create_parser():
parser = argparse.ArgumentParser()
Expand All @@ -14,6 +14,4 @@ def run(**kwargs):
config = load_config(os.path.join(repo_root, "config.default.json"),
os.path.join(repo_root, "config.json"))

config = normalise_config(config, {})

print(make_hosts_file(config, kwargs["address"]))
Loading

0 comments on commit af67827

Please sign in to comment.