让Python IDLE在shell重新启动时运行代码
我正在运行 EPD 并使用 IDLE 进行大部分编码。我想做的是让 IDLE 在每次重新启动 Python shell 时运行脚本来自定义我的环境。我已经尝试阅读有关自定义 IDLE 和 Python 环境的所有各种帖子,但我还没有看到任何解决此特定场景的内容。 IDLE 或 EPD IDLE(如果有任何区别)在重新启动 shell 时是否有要查找的特定模块,例如 usercustomize.py 或 sitecustomize.py?有人自己完成过这个吗?任何指导表示赞赏。
I'm running EPD and using IDLE for most of my coding. What I'd like to do is get IDLE to run a script to customize my environment whenever I restart the Python shell. I've tried reading all the various posts on customizing IDLE and the Python environment, and I've yet to see anything that addresses this specific scenario. Does IDLE or EPD IDLE (if there's any difference) have a particular module it's looking for when it restarts the shell, like usercustomize.py or sitecustomize.py? Has anyone accomplished this on their own? Any guidance is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看:http://docs.python.org/library/idle.html#startup< /a>
干杯,
约翰内斯
Check out: http://docs.python.org/library/idle.html#startup
Cheers,
Johannes