Handle modules with __file__ property being None
It's been discovered that some modules have the `__file__` property being set as `None`. An example of a such module is `backports`. Providing `None` to `os.path.abspath()` causes an exception: `TypeError: expected str, bytes or os.PathLike object, not NoneType` Related to https://github.com/mitogen-hq/mitogen/issues/946pull/1042/head
parent
cca651da1f
commit
591e5422ea
Loading…
Reference in New Issue