I'm developing a customised version of Python 3.7 for my school, mostly because they have the C drive blocked and IDLE's default save location is C:\Python33. I've got the source code because I'm also changing a couple icons and stuff, so how would I go about changing the default save location? I checked config.py
in the idlelib
folder but that only has references to <<save-window>>
and that's just a keybinding to <Control-s>
. Any help?
How to stop IDLE defaulting to C:\Python33 folder when saving
131 views Asked by Hayden Young At
1
If I understand you correctly you want to configure python to default the save location to anything other than
C:\
because you cannot access it.This can be done by either moving/copying the
Python3.3
directory elsewhere (worked for me) thus changing the path variable which opens the saving dialog in the current directory or editing theIOBinding
class which can be looked up here:https://github.com/python/cpython/blob/master/Lib/idlelib/iomenu.py#L112
Let me know what worked for you.