You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any functional problem in Client64.py if I switch from sys.getsitepackages() to sys.path?
Because virtualenv manages it's own version of sitepypa/virtualenv/#737 Client64.py Line 127:
# _append_sys_path = site.getsitepackages()
_append_sys_path = sys.path
if append_sys_path is not None:
if isinstance(append_sys_path, str):
_append_sys_path.append(append_sys_path.strip())
elif isinstance(append_sys_path, (list, tuple)):
_append_sys_path.extend(append_sys_path)
else:
raise TypeError('append_sys_path must be a str, list or tuple')
cmd.extend(['--append-sys-path', ';'.join(_append_sys_path).strip()])
I just blindly tried to change it and it worked in my case.
The text was updated successfully, but these errors were encountered:
No functional problem at all. The change that you made is perfectly fine.
The primary reason for the --append-sys-path parameter is to make sure that any import statement that is done on the module that is running on the 32-bit server does not raise ImportError.
I found myself doing the same thing often -- passing sys.path from Client64 to Server32 and so I decided to replace site.getsitepackages() with sys.path in the latest release (v0.3.2) to fix this issue.
I cannot remember the original reason why I chose to use site.getsitepackages() anyways.
Is there any functional problem in
Client64.py
if I switch fromsys.getsitepackages()
tosys.path
?Because virtualenv manages it's own version of
site
pypa/virtualenv/#737Client64.py
Line 127:I just blindly tried to change it and it worked in my case.
The text was updated successfully, but these errors were encountered: