dgpe qt: build related fixes.

--HG--
extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40217
This commit is contained in:
hsoft 2009-10-24 16:30:37 +00:00
parent b25c1c3a3b
commit 911521d8e0
4 changed files with 6 additions and 2 deletions

View File

@ -31,7 +31,7 @@ class File(fs.File):
INITIAL_INFO.update({
'dimensions': (0,0),
})
HANDLED_EXTS = set(['png', 'jpg', 'jpeg', 'gif', 'bmp', 'tiff'])
HANDLED_EXTS = set(['png', 'jpg', 'jpeg', 'gif', 'bmp', 'tiff', 'tif'])
@classmethod
def can_handle(cls, path):

View File

@ -1,6 +1,6 @@
# -*- mode: python -*-
a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'), os.path.join(HOMEPATH,'support\\useUnicode.py'), 'start.py'],
pathex=['C:\\src\\dupeguru\\pe\\qt'])
pathex=[])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,

View File

@ -16,6 +16,7 @@ from hsutil.build import print_and_do, build_all_qt_ui
build_all_qt_ui(op.join('qtlib', 'ui'))
build_all_qt_ui('base')
build_all_qt_ui('.')
print_and_do("pyrcc4 base\\dg.qrc > base\\dg_rc.py")
def move(src, dst):
if not op.exists(src):

View File

@ -14,6 +14,9 @@ import base.dg_rc
from app import DupeGuru
# This is a workaround for a pyinstaller problem where compiled dupeguru can't read tiff files
from PIL import TiffImagePlugin, TiffTags
if __name__ == "__main__":
app = QApplication(sys.argv)
app.setWindowIcon(QIcon(QPixmap(":/logo_pe")))