We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16f2bda commit 94e4059Copy full SHA for 94e4059
1 file changed
src/dotenv/main.py
@@ -107,7 +107,10 @@ def set_as_environment_variables(self) -> bool:
107
if k in os.environ and not self.override:
108
continue
109
if v is not None:
110
- os.environ[k] = v
+ os.environ[to_env(k)] = to_env(v)
111
+ if to_env(k) == 'BASE_DIR' and to_env(v) not in sys.path:
112
+ logger.info('Append BASE_DIR to path.')
113
+ sys.path.append(to_env(v))
114
115
return True
116
0 commit comments