Skip to content

Commit e3c3901

Browse files
authored
FIX: map - to _ for environement variable prefix. (#895)
1 parent 7d13472 commit e3c3901

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

traitlets/config/application.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,8 +973,7 @@ def load_config_file(
973973
@catch_config_error
974974
def load_config_environ(self) -> None:
975975
"""Load config files by environment."""
976-
977-
PREFIX = self.name.upper()
976+
PREFIX = self.name.upper().replace("-", "_")
978977
new_config = Config()
979978

980979
self.log.debug('Looping through config variables with prefix "%s"', PREFIX)

0 commit comments

Comments
 (0)