Skip to content

Commit

Permalink
tableau#467 Update setup.utils.py
Browse files Browse the repository at this point in the history
Add convenience function for building the config dict
  • Loading branch information
ElPincheTopo authored Jan 14, 2021
1 parent f4f4bb5 commit 5ba21d0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tabpy/models/utils/setup_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ def get_default_config_file_path():
return config_file_path


def parse_config(config_file_path):
def get_config(config_file_path):
config = configparser.ConfigParser()
config.read(config_file_path)
tabpy_config = config["TabPy"]
return config


def parse_config(config_file_path):
tabpy_config = get_config(config_file_path)["TabPy"]

port = 9004
if "TABPY_PORT" in tabpy_config:
Expand Down

0 comments on commit 5ba21d0

Please sign in to comment.