Re: [weewx-user] extension installer sleight of hand question

2021-01-27 Thread vince
Thanks for the clarification. I think we can live with the workaround (which works fine). On Wednesday, January 27, 2021 at 2:13:30 PM UTC-8 Tom Keffer wrote: > It's not a bug, it's a limitation with ConfigObj. > > In ConfigObj, all comments belong to the option or section below them. If > you

Re: [weewx-user] extension installer sleight of hand question

2021-01-27 Thread Tom Keffer
It's not a bug, it's a limitation with ConfigObj. In ConfigObj, all comments belong to the option or section below them. If you don't have anything below, there is no place for ConfigObj to put the comment and it is ignored. Usually one can find creative ways around the problem. For example, this

Re: [weewx-user] extension installer sleight of hand question

2021-01-27 Thread vince
Tom - think I found a bug in 4.3.0 for this one - the extension installer gets confused if you flip-flop back and forth in a sub-element between comments and uncommented items in the install.py script. wee_extension seems to not put any comments that are in install.py 'below' the last uncomment

Re: [weewx-user] extension installer sleight of hand question

2020-12-24 Thread vince
Tom - can we get this into 4.3 please since that's imminent and this one affects only comments ? On Wednesday, December 23, 2020 at 4:56:37 PM UTC-8 Tom Keffer wrote: > Now that I look at the actual code, my approach doesn't always work! It > will not preserve comments at the root level. For e

Re: [weewx-user] extension installer sleight of hand question

2020-12-23 Thread Tom Keffer
Now that I look at the actual code, my approach doesn't always work! It will not preserve comments at the root level. For example: # This is a comment [SectionA] # Comment on option1 option1 = foo option2 = bar # Inline comment about option2 The highlighted comment would not get preserved

Re: [weewx-user] extension installer sleight of hand question

2020-12-23 Thread vince
On Wednesday, December 23, 2020 at 2:48:37 PM UTC-8 Tom Keffer wrote: > I guess I'm not understanding this. If you create a config section for the > installer, it will be faithfully reproduced as it gets injected into > weewx.conf, including any comments. > > As an example, take a look at insta

Re: [weewx-user] extension installer sleight of hand question

2020-12-23 Thread Tom Keffer
I guess I'm not understanding this. If you create a config section for the installer, it will be faithfully reproduced as it gets injected into weewx.conf, including any comments. As an example, take a look at install.py for weewx-