That is a good point, and it doesn’t look from that code as though windows is currently supported. I might take a look at writing something that does switch on OS with differing strategies. I kind of don’t like that approach in general (because it feels like the ‘ol “version check” in windows which everyone got so wrong for so png that MS actively fights you if you try and get that info on recent versions). Mostly though my issue is that OS versions aren’t necessarily correlated directly with methods - eg, until about 5.7 iirc, OpenBSD had a procfs you could use, but it was dropped. Arguably we should be testing fpr the existence of methods, not versions (the current exception driven design is actually closer to this, though just trying t and dealing with the fallout when it fails is perhaps less elegant!)
- Re: [weewx-development] Re: [patch] station.py support ... Bill Richter
- Re: [weewx-development] Re: [patch] station.py support ... Bill Richter
- Re: [weewx-development] Re: [patch] station.py supp... Jon Marnock
- Re: [weewx-development] Re: [patch] station.py ... Greg Troxel
- Re: [weewx-development] Re: [patch] station... Thomas Keffer
- Re: [weewx-development] Re: [patch] st... Greg Troxel
- Re: [weewx-development] Re: [patch] st... Jon Marnock
- Re: [weewx-development] Re: [patch] st... Thomas Keffer
- Re: [weewx-development] Re: [patch] st... Bill Richter
- Re: [weewx-development] Re: [patch] st... mwall
- Re: [weewx-development] Re: [patch] st... Jon Marnock
- Re: [weewx-development] Re: [patch] st... Thomas Keffer
- Re: [weewx-development] Re: [patch] st... Jon Marnock
- Re: [weewx-development] Re: [patch] st... Thomas Keffer
- Re: [weewx-development] Re: [patch] st... Jon Marnock
- [weewx-development] Re: [patch] station.py support OS upti... mwall
