Skip to content

Commit 077aad5

Browse files
authored
Build: Make $HOME the default cwd (#8191)
1 parent 611d35c commit 077aad5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

readthedocs/doc_builder/environments.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def __init__(
102102
):
103103
self.command = command
104104
self.shell = shell
105-
self.cwd = cwd or os.getcwd()
105+
self.cwd = cwd or '$HOME'
106106
self.user = user or settings.RTD_DOCKER_USER
107107
self.environment = environment.copy() if environment else {}
108108
if 'PATH' in self.environment:

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ setenv =
1111
LANG=en_US.UTF-8
1212
LC_ALL=en_US.UTF-8
1313
DJANGO_SETTINGS_SKIP_LOCAL=True
14-
passenv = CI TRAVIS TRAVIS_*
14+
passenv = CI TRAVIS TRAVIS_* HOME
1515
deps = -r{toxinidir}/requirements/testing.txt
1616
changedir = {toxinidir}/readthedocs
1717
basepython =

0 commit comments

Comments
 (0)