Oh, I see how certifi/core.py could interact with this problem. If its where() method is called for the first time in a state where get_path returns the temporary directory, and then the temporary directory is deleted, subsequent calls to where() will fail in just this way. It does not have to have anything to do with the code in it that uses __file__ as long as it is called for the first time in a context in which get_path really is supposed to return the temporary directory.
|