Fixes here and there to make dupeGuru PE run.

This commit is contained in:
Virgil Dupras 2010-08-15 14:23:16 +02:00
parent 4c273a7910
commit 12e6c400b9
3 changed files with 9 additions and 3 deletions

View File

@ -8,9 +8,13 @@ from core.app_cocoa_inter import PyDupeGuruBase, PyDetailsPanel
from core_pe import app_cocoa as app_pe_cocoa
# Fix py2app imports which chokes on relative imports and other stuff
from core_pe import block, cache, matchbase, data, _block_osx
from lxml import etree, _elementpath
import hsutil.conflict
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 aem.kae
import appscript.defaultterminology
class PyDupeGuru(PyDupeGuruBase):
def init(self):

View File

@ -96,6 +96,8 @@ class DupeGuru(RegistrableApplication, Broadcaster):
def _get_file(self, str_path):
path = Path(str_path)
f = fs.get_file(path, self.directories.fileclasses)
if f is None:
return None
try:
f._read_all_info(attrnames=self.data.METADATA_TO_READ)
return f

View File

@ -10,7 +10,7 @@ import os
import logging
import sqlite3 as sqlite
from _cache import string_to_colors
from ._cache import string_to_colors
def colors_to_string(colors):
"""Transform the 3 sized tuples 'colors' into a hex string.