Skip to content

Commit

Permalink
Merge pull request #3585 from pypa/bugfix/3584
Browse files Browse the repository at this point in the history
Bugfix 3584
  • Loading branch information
techalchemy authored Mar 6, 2019
2 parents 54a73d1 + 5fc4695 commit 12572dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/3584.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the issue that lock file can't be created when ``PIPENV_PIPFILE`` is not under working directory.
3 changes: 3 additions & 0 deletions pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def preferred_newlines(f):

else:
PIPENV_PIPFILE = _normalized(PIPENV_PIPFILE)
# Overwrite environment variable so that subprocesses can get the correct path.
# See https://github.com/pypa/pipenv/issues/3584
os.environ['PIPENV_PIPFILE'] = PIPENV_PIPFILE
# (path, file contents) => TOMLFile
# keeps track of pipfiles that we've seen so we do not need to re-parse 'em
_pipfile_cache = {}
Expand Down

0 comments on commit 12572dd

Please sign in to comment.