mirror of
https://github.com/Leseratte10/acsm-calibre-plugin
synced 2024-11-15 19:48:29 +01:00
Force-exit during plugin migration
This commit is contained in:
parent
2904e187c4
commit
d6b87d7413
1 changed files with 6 additions and 1 deletions
|
@ -146,7 +146,12 @@ class ACSMInput(FileTypePlugin):
|
|||
plugins["ACSM Input"] = os.path.join(self.pluginsdir, "ACSM Input.zip")
|
||||
ui_plg_config['plugins'] = plugins
|
||||
|
||||
return
|
||||
print("Need another restart due to plugin update ...")
|
||||
# "Rude" exit, but otherwise it won't work ...
|
||||
try:
|
||||
os._exit(42)
|
||||
except TypeError:
|
||||
os._exit()
|
||||
|
||||
|
||||
# Make sure the GUI extension is loaded:
|
||||
|
|
Loading…
Reference in a new issue