Skip to content

Commit 5ba21d0

Browse files
authored
tableau#467 Update setup.utils.py
Add convenience function for building the config dict
1 parent f4f4bb5 commit 5ba21d0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tabpy/models/utils/setup_utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ def get_default_config_file_path():
1313
return config_file_path
1414

1515

16-
def parse_config(config_file_path):
16+
def get_config(config_file_path):
1717
config = configparser.ConfigParser()
1818
config.read(config_file_path)
19-
tabpy_config = config["TabPy"]
19+
return config
20+
21+
22+
def parse_config(config_file_path):
23+
tabpy_config = get_config(config_file_path)["TabPy"]
2024

2125
port = 9004
2226
if "TABPY_PORT" in tabpy_config:

0 commit comments

Comments
 (0)