You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
os.getcwd() behavior on run-python vs elpy. elpy defaults to $HOME instead of directory of the file. How to make elpy to use the project root directory as the default working directory?
Steps to reproduce
import os
print(os.getcwd())
=C-c C-c= under Elpy
`
Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import os
... print(os.getcwd())
/home/vanangamudi
`
=C-c C-c= under =M-x run-python=
`
Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Summary
os.getcwd() behavior on run-python vs elpy. elpy defaults to $HOME instead of directory of the file. How to make elpy to use the project root directory as the default working directory?
Steps to reproduce
=C-c C-c= under Elpy
`
Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
/home/vanangamudi
`
=C-c C-c= under =M-x run-python=
`
Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
/home/vanangamudi/home/projects/code/astraa/assetmgmt
`
My configuration
OS
Linux kaikuttai 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Result of
(elpy-config)
Elpy configuration in my init.el
The text was updated successfully, but these errors were encountered: