mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Fixes here and there to make dupeGuru PE run.
This commit is contained in:
parent
4c273a7910
commit
12e6c400b9
@ -8,9 +8,13 @@ from core.app_cocoa_inter import PyDupeGuruBase, PyDetailsPanel
|
|||||||
from core_pe import app_cocoa as app_pe_cocoa
|
from core_pe import app_cocoa as app_pe_cocoa
|
||||||
|
|
||||||
# Fix py2app imports which chokes on relative imports and other stuff
|
# Fix py2app imports which chokes on relative imports and other stuff
|
||||||
from core_pe import block, cache, matchbase, data, _block_osx
|
import hsutil.conflict
|
||||||
from lxml import etree, _elementpath
|
import core.engine, core.fs, core.app
|
||||||
|
import core_pe.block, core_pe.cache, core_pe.matchbase, core_pe.data, core_pe._block_osx
|
||||||
|
import lxml.etree, lxml._elementpath
|
||||||
import gzip
|
import gzip
|
||||||
|
import aem.kae
|
||||||
|
import appscript.defaultterminology
|
||||||
|
|
||||||
class PyDupeGuru(PyDupeGuruBase):
|
class PyDupeGuru(PyDupeGuruBase):
|
||||||
def init(self):
|
def init(self):
|
||||||
|
@ -96,6 +96,8 @@ class DupeGuru(RegistrableApplication, Broadcaster):
|
|||||||
def _get_file(self, str_path):
|
def _get_file(self, str_path):
|
||||||
path = Path(str_path)
|
path = Path(str_path)
|
||||||
f = fs.get_file(path, self.directories.fileclasses)
|
f = fs.get_file(path, self.directories.fileclasses)
|
||||||
|
if f is None:
|
||||||
|
return None
|
||||||
try:
|
try:
|
||||||
f._read_all_info(attrnames=self.data.METADATA_TO_READ)
|
f._read_all_info(attrnames=self.data.METADATA_TO_READ)
|
||||||
return f
|
return f
|
||||||
|
@ -10,7 +10,7 @@ import os
|
|||||||
import logging
|
import logging
|
||||||
import sqlite3 as sqlite
|
import sqlite3 as sqlite
|
||||||
|
|
||||||
from _cache import string_to_colors
|
from ._cache import string_to_colors
|
||||||
|
|
||||||
def colors_to_string(colors):
|
def colors_to_string(colors):
|
||||||
"""Transform the 3 sized tuples 'colors' into a hex string.
|
"""Transform the 3 sized tuples 'colors' into a hex string.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user