We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e48ed0 commit a4b3782Copy full SHA for a4b3782
alembic/script/base.py
@@ -212,9 +212,12 @@ def from_config(cls, config: Config) -> ScriptDirectory:
212
213
prepend_sys_path = config.get_main_option("prepend_sys_path")
214
if prepend_sys_path:
215
- sys.path[:0] = list(
216
- _split_on_space_comma_colon.split(prepend_sys_path)
217
- )
+ if os.name == 'nt':
+ prepend_paths = _split_on_space_comma.split(prepend_sys_path)
+ else:
218
+ prepend_paths = _split_on_space_comma_colon.split(prepend_sys_path)
219
+
220
+ sys.path[:0] = (os.path.normpath(path.strip()) for path in prepend_paths)
221
222
rvl = config.get_main_option("recursive_version_locations") == "true"
223
return ScriptDirectory(
0 commit comments