Skip to content

Commit b0eaa6a

Browse files
qraqrasminrk
andauthored
The --config option with absolute paths will be loaded only once. (#923)
Co-authored-by: Min RK <[email protected]>
1 parent 0644809 commit b0eaa6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

traitlets/config/application.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,8 @@ def _load_config_files(
899899
900900
yield each config object in turn.
901901
"""
902+
if os.path.isabs(basefilename):
903+
path = [None]
902904
if isinstance(path, str) or path is None:
903905
path = [path]
904906
for current in reversed(path):

0 commit comments

Comments
 (0)