diff --git a/core/app.py b/core/app.py index 429119f6..2f988f61 100644 --- a/core/app.py +++ b/core/app.py @@ -151,9 +151,9 @@ class DupeGuru(Broadcaster): # show_problem_dialog() # select_dest_folder(prompt: str) --> str # select_dest_file(prompt: str, ext: str) --> str - - # in fairware prompts, we don't mention the edition, it's too long. + PROMPT_NAME = "dupeGuru" + SCANNER_CLASS = scanner.Scanner def __init__(self, view): if view.get_default(DEBUG_MODE_PREFERENCE): @@ -166,7 +166,7 @@ class DupeGuru(Broadcaster): os.makedirs(self.appdata) self.directories = directories.Directories() self.results = results.Results(self) - self.scanner = scanner.Scanner() + self.scanner = self.SCANNER_CLASS() self.options = { 'escape_filter_regexp': True, 'clean_empty_dirs': False, diff --git a/core_pe/app.py b/core_pe/app.py index e8e7b0ca..5bdc34c6 100644 --- a/core_pe/app.py +++ b/core_pe/app.py @@ -17,10 +17,10 @@ from .result_table import ResultTable class DupeGuru(DupeGuruBase): NAME = __appname__ METADATA_TO_READ = ['size', 'mtime', 'dimensions', 'exif_timestamp'] + SCANNER_CLASS = ScannerPE def __init__(self, view): DupeGuruBase.__init__(self, view) - self.scanner = ScannerPE() self.scanner.cache_path = op.join(self.appdata, 'cached_pictures.db') def _get_dupe_sort_key(self, dupe, get_group, key, delta):