opencv / open_vision_capsules

A set of libraries for encapsulating smart vision algorithms
Other
130 stars 48 forks source link

Fix sys.meta_path race condition #38

Closed velovix closed 3 years ago

velovix commented 3 years ago

Removing the ZipFinder by index has the potential to remove a meta path finder that was added while the capsule module is initializing. Using .remove ensures we remove the exact ZipFinder we inserted.

velovix commented 3 years ago

I've never knowingly seen this cause problems, but I found it while debugging another issue and thought it was worth fixing.