-
Notifications
You must be signed in to change notification settings - Fork 7
Use configuration file in home directory #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use configuration file in home directory #7
Comments
This uses the official/upstream way of finding the config and history file, since ~/.ptpython/config.py is deprecated. It also uses the global ones, though it can be easily extended to support per project config and history. But that's for a rainy day. Fixes jacquerie#7 and jacquerie#13.
I just tried the changes from #15 and I can confirm that it works. Please merge this very soon, I have a very fine tuned ptpython configuration and would like to use it in a flask shell as well. |
@jacquerie I think a lot of us find this very useful! If you could merge #15 and get it on pip that'd be great-- let us know if you need help! |
for anyone else who is as impatient as i am, this command will install PR #15 directly:
you might be able to leave the NOTE: this doesn't seem to work with pip==21.3, but i can confirm it's working on pip==20.2.3. |
Hey, closing this issue as irrelevant after many years. Feel free to reopen if necessary. |
Please make flask-shell-ptpython apply configurations from
~/.ptpython/config.py
in user's home directory.The text was updated successfully, but these errors were encountered: