Skip to content

Commit ee282a5

Browse files
authored
Merge pull request #4852 from stsewd/use-home-as-cwd-for-venv
Use $HOME as CWD for virtualenv creation
2 parents a6120f4 + 69eb9f4 commit ee282a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

readthedocs/doc_builder/python_environments.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,10 @@ def setup_base(self):
215215
site_packages,
216216
'--no-download',
217217
env_path,
218-
bin_path=None, # Don't use virtualenv bin that doesn't exist yet
219-
cwd=self.checkout_path,
218+
# Don't use virtualenv bin that doesn't exist yet
219+
bin_path=None,
220+
# Don't use the project's root, some config files can interfere
221+
cwd='$HOME',
220222
)
221223

222224
def install_core_requirements(self):

0 commit comments

Comments
 (0)