Skip to content

Commit 01d2f92

Browse files
authored
Update settings.py
1 parent ec5c28c commit 01d2f92

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

GEMstack/utils/settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ def load_settings():
3737

3838
def settings():
3939
"""Returns all global settings, loading them if necessary."""
40-
global SETTINGS
40+
#global SETTINGS
4141
load_settings()
4242
return SETTINGS
4343

4444

4545
def get(path : Union[str,List[str]], defaultValue=KeyError) -> Any:
4646
"""Retrieves a setting by a list of keys or a '.'-separated string."""
47-
global SETTINGS
47+
#global SETTINGS
4848
load_settings()
4949
if isinstance(path,str):
5050
path = path.split('.')
@@ -65,7 +65,7 @@ def set(path : Union[str,List[str]], value : Any, leaf_only=True) -> None:
6565
If leaf_only=True (default), we prevent inadvertently deleting parts of the
6666
settings dictionary.
6767
"""
68-
global SETTINGS
68+
#global SETTINGS
6969
load_settings()
7070
if isinstance(path,str):
7171
path = path.split('.')

0 commit comments

Comments
 (0)