Default save path for Python IDLE?

后端 未结 11 1241
自闭症患者
自闭症患者 2020-12-18 00:36

Does anyone know where or how to set the default path/directory on saving python scripts prior to running?

On a Mac it wants to save them in the top level ~/

11条回答
  •  执笔经年
    2020-12-18 01:23

    If you locate the idlelib directory in your Python install, it will have a few files with the .def extension. config-main.def has instructions on where to put the custom config files. However, looking through these I did not find any configurable paths (your install may vary). Looks like you might need to crack open the editor code to alter it.

提交回复
热议问题