[wingide-users] script to generate HTML files for keymaps

Werner F. Bruhin werner.bruhin at free.fr
Wed Nov 14 11:16:51 EST 2012


On 14/11/2012 16:08, Wingware Support wrote:
> Werner F. Bruhin wrote:
>> After I changed it to the following I get this exception:
>> keymap_location = r"C:\Program Files (x86)\Wing IDE 4.1"  ??? Is this 
>> what is consider WINGHOME on Windows, i.e. WingIDE's program folder?
>>
>> ConfigParser.NoSectionError: No section: 'user-preferences'
>> File "c:\dev\aaWingTools\wing_keymap2html.py", line 146, in <module>
>>   keymap = report_keymap('keymap.user', UserKeymap().load())
>> File "c:\dev\aaWingTools\wing_keymap2html.py", line 134, in load
>>   for key, value in evaluate(config.get('user-preferences', 
>> 'gui.keymap-override')).items():
>> File "c:\Python27\Lib\ConfigParser.py", line 322, in get
>>   raise NoSectionError(section)
>>
>> I don't have any custom key bindings (at least not yet), could that 
>> be the reason?
>
> I haven't tried the script yet but from looking at the source I 
> suspect you also need to set preferences_path to the correct location 
> for your version of Windows (it's listed as the User Settings 
> directory 5th in Wing IDE's About box, accessed from the Help menu).
>
FYI, I get the same exception after setting preferences_path.

Werner


More information about the wingide-users mailing list