Confusing Python library versions

Discussions, Bug Reports and Issues related to Beta versions of SharpCap
Post Reply
y3000
Posts: 18
Joined: Fri Mar 15, 2024 12:56 am

Confusing Python library versions

#1

Post by y3000 »

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? :roll:
User avatar
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

#2

Post by admin »

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
Post Reply