Default save path for Python IDLE?

后端 未结 11 1245
自闭症患者
自闭症患者 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条回答
  •  Happy的楠姐
    2020-12-18 01:23

    In my case, the default directory is set to the directory from which I launched IDLE. For instance, if I launched IDLE from a directory called 'tmp' in my home directory, the default save path is set to ~/tmp. So start your IDLE like this:

    ~/tmp $ idle
    [...]
    

提交回复
热议问题