How to save custom preferences of python's IDLE?

前端 未结 2 942
小蘑菇
小蘑菇 2021-01-14 10:10

I have several computers at different locations, and although I\'m not coding in IDLE, it is always running in the background, for small testing, debugging and researching t

相关标签:
2条回答
  • 2021-01-14 10:40

    IDLE saves its preferences in several files in the $HOME/.idlerc directory, creating the files (for example, config-main.cfg) as needed. The important ones, at least, are simple text files so you should be able to copy those files from your home directory on one machine to another. There are a few potential gotcha's to watch out for:

    • When you copy the files to another home directory, make sure no IDLE instances are running.

    • Be aware that currently all versions of IDLE (with Python 2.7, 3.2, 3.3, etc) share the same .idlerc directory and files. I'm not aware of any major conflicts at this point other than possibly recent files with file names with non-ASCII characters that require Unicode representation: that could cause problems sharing between IDLE 2.x and 3.x.

    • Another issue might be line endings if you attempt to share files between Windows and non-Windows systems.

    0 讨论(0)
  • 2021-01-14 10:43

    It is in ".idlerc" named folder in your users directory in windows 10

    here are the steps

    1. press win+R OR simply search in windows search(the taskbar one)
    2. then paste %USERPROFILE%\.idlerc
    3. hit enter

    copy all files in it to wherever you may like to (a usb in your case)

    0 讨论(0)
提交回复
热议问题