mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
dgpe qt: build related fixes.
--HG-- extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40217
This commit is contained in:
parent
b25c1c3a3b
commit
911521d8e0
@ -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):
|
||||
|
@ -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,
|
||||
|
@ -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):
|
||||
|
@ -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")))
|
||||
|
Loading…
x
Reference in New Issue
Block a user