Ok, now after it working well for a while all of a sudden it has issues on the second time the action is triggered. I've got the following pattern:
with self.interface_action_base_plugin:
import googleapiclient.discovery
import google_auth_oauthlib.flow
etc.
On the second try the import fails because it's trying to import from a temp folder that has since gotten deleted. C:\\Users\\jeremy\\AppData\\Local\\Temp\\calibre_k r5ouawl\\6915rm5iplugin_unzip
Is there some method to make the plugin unzip not get deleted when the first action finishes? Maybe I need to assign the result of the with operation to a class variable so it stays around until calibre closes or something?
|