diff options
| author | chrysle <fritzihab@posteo.de> | 2023-04-28 01:36:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-27 16:36:03 -0700 |
| commit | fd93dd79be89b21e6e9d43ca2dd1b02b811f6d6f (patch) | |
| tree | 89c53dd6b596d5ff6da56bb814b57b735e8c8f24 /src/virtualenv/activation/python | |
| parent | 89f80b8fb18a15243d5f0b5e288f62bc86538a80 (diff) | |
| download | virtualenv-fd93dd79be89b21e6e9d43ca2dd1b02b811f6d6f.tar.gz | |
3.12 support and no setuptools/wheel on 3.12+ (#2558)
Diffstat (limited to 'src/virtualenv/activation/python')
| -rw-r--r-- | src/virtualenv/activation/python/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/virtualenv/activation/python/__init__.py b/src/virtualenv/activation/python/__init__.py index 28861f9..ed220dc 100644 --- a/src/virtualenv/activation/python/__init__.py +++ b/src/virtualenv/activation/python/__init__.py @@ -13,9 +13,10 @@ class PythonActivator(ViaTemplateActivator): def replacements(self, creator, dest_folder): replacements = super().replacements(creator, dest_folder) lib_folders = OrderedDict((os.path.relpath(str(i), str(dest_folder)), None) for i in creator.libs) + lib_folders = os.pathsep.join(lib_folders.keys()).replace("\\", "\\\\") # escape Windows path characters replacements.update( { - "__LIB_FOLDERS__": os.pathsep.join(lib_folders.keys()), + "__LIB_FOLDERS__": lib_folders, "__DECODE_PATH__": "", }, ) |
