[issue20580] IDLE should support platform-specific default config defaults

Mark Roseman report at bugs.python.org
Thu Oct 1 01:54:09 CEST 2015


Mark Roseman added the comment:

Before creating another layer on top of the existing layers of configuration handling, can I suggest for now at least just hard-coding the few things that are needed in the code itself? 

For example, in configHandler.py, after calling LoadCfgFiles, we could call a routine like, e.g.

    def AdjustPlatformDefaults(self):
        if sys.platform == 'darwin':
            self.defaultCfg['main'].set('Keys', 'name', 'IDLE Classic OSX')
        ...

An appropriate comment could be added to config-main.def about this default option being overridden.

That would allow getting rid of the Makefile hack.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20580>
_______________________________________


More information about the Python-bugs-list mailing list