File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,9 @@ def config(self) -> t.Any:
94
94
95
95
secrets_volume = env .get ('secrets_volume' ) or parent .get ('secrets_volume' )
96
96
97
- secrets_volume = os .path .expanduser (secrets_volume )
97
+ if secrets_volume :
98
+ secrets_volume = os .path .expanduser (secrets_volume )
99
+
98
100
if secrets_volume and os .path .isdir (secrets_volume ):
99
101
load_secrets (secrets_volume )
100
102
env = config_dicts .environ_to_config_dict (
Original file line number Diff line number Diff line change @@ -55,6 +55,14 @@ def read(path):
55
55
"""
56
56
path = pathlib .Path (path )
57
57
58
+ if 'SUPERDUPER_CONFIG' in os .environ :
59
+ os .environ ['SUPERDUPER_CONFIG' ] = os .path .abspath (
60
+ os .environ ['SUPERDUPER_CONFIG' ]
61
+ )
62
+ os .environ ['SUPERDUPER_CONFIG' ] = os .path .expanduser (
63
+ os .environ ['SUPERDUPER_CONFIG' ]
64
+ )
65
+
58
66
@contextmanager
59
67
def change_dir (destination ):
60
68
prev_dir = os .getcwd ()
You can’t perform that action at this time.
0 commit comments