Closed
Description
Describe the bug
Space is used a path separator in version_locations
. As a result, it's not possible to set custom version_locations
to a directory that contains spaces (e.g. C:\Program Files\MyApp
)
Expected behavior
Directories with spaces are supported.
To Reproduce
>>> from alembic.config import Config
>>> from alembic.script import ScriptDirectory
>>> c = Config("C:\\Program Files\\MyApp\\alembic.ini")
>>> c.set_main_option("version_locations", "C:\\Program Files\\MyApp\\MyVersions")
>>> s = ScriptDirectory.from_config(c)
>>> s.version_locations
['C:\\Program', 'Files\\MyApp\\MyVersions']
Error
Buggy line: https://github.com/sqlalchemy/alembic/blob/rel_1_6_2/alembic/script/base.py#L140
Versions.
All
Additional context
Have a nice day!