Spaces:
Sleeping
Sleeping
Create utilities/setup.py
Browse files- utilities/setup.py +10 -0
utilities/setup.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
import os
|
3 |
+
|
4 |
+
|
5 |
+
def get_json_cfg():
|
6 |
+
"""Retrieve configuration file"""
|
7 |
+
config_path = os.getenv('CONFIG_PATH')
|
8 |
+
with open(config_path, 'r') as file:
|
9 |
+
config = json.load(file)
|
10 |
+
return config
|