diff --git a/OrphanedScriptExtenderSaveDeleter.py b/OrphanedScriptExtenderSaveDeleter.py index 3e07270..d07dfb5 100644 --- a/OrphanedScriptExtenderSaveDeleter.py +++ b/OrphanedScriptExtenderSaveDeleter.py @@ -1,7 +1,5 @@ import sys -from glob import glob - from PyQt5.QtCore import QCoreApplication, qDebug from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import QMessageBox @@ -62,6 +60,7 @@ def display(self): if self.__organizer.profile().localSavesEnabled(): gameSavesDirectory = os.path.join(self.__organizer.profile().absolutePath(), "saves") count = 0 + from glob import glob for cosave in glob(os.path.join(gameSavesDirectory, "*." + skseSaveExtension)): saveName = os.path.splitext(cosave)[0] if not os.path.isfile(saveName + "." + gameSaveExtension): diff --git a/OrphanedScriptExtenderSaveDeleter_en.ts b/OrphanedScriptExtenderSaveDeleter_en.ts index add23c1..3375608 100644 --- a/OrphanedScriptExtenderSaveDeleter_en.ts +++ b/OrphanedScriptExtenderSaveDeleter_en.ts @@ -3,42 +3,42 @@ OrphanedScriptExtenderSaveDeleter - + Deletes script extender saves which don't have a corresponding base game save. - + Orphaned Script Extender Save Deleter - + Before starting deletion... - + Please double check that you want your orphaned script extender saves deleted. If you proceed, you won't be able to get them back, even if you find you've copied the corresponding base game save somewhere else so still have a copy. - + No orphaned script extender saves found - + No orphaned script extender co-saves were found, so none were removed. - + Orphaned script extender saves removed - + {0} orphaned script extender co-save(s) removed successfully.