Open shenzh1206 opened 4 years ago
elpy-shell-use-project-root
is an obsolete variable as of Elpy 1.33.
(setq elpy-shell-starting-directory 'current-directory)
should work, but it requires you to restart the python interpreter afterwards (with C-c C-k
followed by C-c C-z
).
Have you done that ?
note: I have updated the documentation to make that last point clear.
Summary
I ran into error messages stating that my custom python module in the same directory is not found when evaluating in elpy-shell (ctrl-c ctrl-c). when directly evaluating the file in terminal, everything works. I added the following code to my file:
import os print(os.getcwd())
it always prints my git repo root. I have tried to set use project root to nil and set elpy-shell start dir to current dir. but it still stuck at git repo root dir. I also tried to explicit set project root dir to current dir, it still prints the git repo root dir.
My configuration
I'm using Linux debian 10
Result of
(elpy-config)
Elpy configuration in my init.el