Confusing Python library versions
Confusing Python library versions
My script needs to use 'ConfigParse'. In some builds of SharpCap 4.1, the module is named 'configparser', while in others it is 'ConfigParser'. The current SharpCap 4.2 beta uses 'configparser'. Could the case of this module name be standardized? 
- admin
- Site Admin
- Posts: 17609
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Confusing Python library versions
Hi,
the name 'ConfigParser' is a bug in SharpCap 4.1 and earlier versions that is corrected in 4.2. So, it's unfortunately impossible to be consistent without re-introducing the bug and impossible to fix the issue fully for 4.1, since it would only work right for those who updated to the fixed version.
I think the best bet in this case is to try/except the first go at importing and then try the other spelling if the first fails.
cheers,
Robin
the name 'ConfigParser' is a bug in SharpCap 4.1 and earlier versions that is corrected in 4.2. So, it's unfortunately impossible to be consistent without re-introducing the bug and impossible to fix the issue fully for 4.1, since it would only work right for those who updated to the fixed version.
I think the best bet in this case is to try/except the first go at importing and then try the other spelling if the first fails.
cheers,
Robin