diff options
| author | Bernát Gábor <bgabor8@bloomberg.net> | 2020-04-08 22:49:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-08 22:49:16 +0100 |
| commit | 6b7d54b0bafe0ae91567fc045d19badf80823c94 (patch) | |
| tree | 4dcff648ab9ba22346db9d541b846a723fd8cb12 /src/virtualenv/create/via_global_ref/api.py | |
| parent | dad4f44850b8fa11bcf3dcd57899a7b26b872eb0 (diff) | |
| download | virtualenv-6b7d54b0bafe0ae91567fc045d19badf80823c94.tar.gz | |
Allow all command line option flags to be used in config file/env-var (#1763)
* Allow all command line option flags to be used in config file/env-var
Extend config file and environment variables checked for configuration to also
check aliases (e.g.
setting either ``VIRTUALENV_COPIES`` or ``VIRTUALENV_ALWAYS_COPY`` will work).
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* fix CI
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
Diffstat (limited to 'src/virtualenv/create/via_global_ref/api.py')
| -rw-r--r-- | src/virtualenv/create/via_global_ref/api.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/virtualenv/create/via_global_ref/api.py b/src/virtualenv/create/via_global_ref/api.py index e0e90a9..237a512 100644 --- a/src/virtualenv/create/via_global_ref/api.py +++ b/src/virtualenv/create/via_global_ref/api.py @@ -34,7 +34,9 @@ class ViaGlobalRefMeta(CreatorMeta): class ViaGlobalRefApi(Creator): def __init__(self, options, interpreter): super(ViaGlobalRefApi, self).__init__(options, interpreter) - self.symlinks = getattr(options, "copies", False) is False + copies = getattr(options, "copies", False) + symlinks = getattr(options, "symlinks", False) + self.symlinks = symlinks is True and copies is False self.enable_system_site_package = options.system_site @classmethod |
