Expand variables in the cwd

ghowardsit
Eric Holscher 2018-11-08 15:55:00 -06:00
parent cdb0f576a6
commit 64b7806d77
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ class BuildCommand(BuildCommandResultMixin):
self.shell = shell
if cwd is None:
cwd = os.getcwd()
self.cwd = cwd
self.cwd = os.path.expandvars(cwd)
self.environment = os.environ.copy()
if environment is not None:
assert 'PATH' not in environment, "PATH can't be set"

View File

@ -218,7 +218,7 @@ class Virtualenv(PythonEnvironment):
# Don't use virtualenv bin that doesn't exist yet
bin_path=None,
# Don't use the project's root, some config files can interfere
cwd=os.path.expanduser("~"),
cwd='$HOME',
)
def install_core_requirements(self):