开发者

Does Python IDLE support sticky folder locations on File | Open?

开发者 https://www.devze.com 2023-04-05 04:41 出处:网络
I frequently open Python scripts using IDLE\'s File | Open. The default location at which the file browser opens is about 5 clicks away from where my Python scripts are stored.

I frequently open Python scripts using IDLE's File | Open.

The default location at which the file browser opens is about 5 clicks away from where my Python scripts are stored.

I would like to know how to change that default location?

Also, does IDLE have any concept of sticky folders (i.开发者_Go百科e. open at the same folder you chose last) that can be turned on?


As I recall there are no such thing inside idle. But you probably could solve such inconvenience with some external tools.
Why don't just create simlinks to your desired locations in default idle dir? It'll be only 1 click away.

On win you could change working directory in IDLE label property's.
Not sure about *nix but probably there are something similar.

Also generally idle is just python script. On win it's located at python PYTHONDIR/Lib/idlelib/idle.py: So you can simply run it in desired location:

cd D:/my_favorite_scripts
python C:/Python27/Lib/idlelib/idle.py
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号