pipenv.el icon indicating copy to clipboard operation
pipenv.el copied to clipboard

Using pipenv from inside a subdirectory

Open hjpotter92 opened this issue 6 years ago • 2 comments

I have the following in my emacs init file:

(use-package pipenv
  :hook (python-mode . pipenv-mode)
  :diminish)

Now, I visit the file a.py in a directory structure:

.:
Pipfile  GRTAGS  GTAGS  GPATH  x/

./x:
y/

./x/y:
a.py

and try to do pipenv-activate. It ends with:

No virtualenv has been created for this project yet!
Process Pipenv exited abnormally with code 1

I have projectile mode enabled. Shouldn't activation happen at project root?

hjpotter92 avatar Jul 04 '18 11:07 hjpotter92

It should you are right, but it doesn't. I've got a range of changes to pipenv on a branch I don't get around to finishing. I'll try to address this there, but also will be happy for a PR that fixes this.

pwalsh avatar Jul 19 '18 05:07 pwalsh

https://github.com/pwalsh/pipenv.el/issues/45

pwalsh avatar Dec 06 '18 16:12 pwalsh