Merge branch 'master' into 1.5

This commit is contained in:
Julien Duponchelle
2016-02-16 18:12:51 +01:00
5 changed files with 149574 additions and 148875 deletions

View File

@@ -27,7 +27,7 @@ import glob
import shutil
import sys
from .qt import QtGui, QtWidgets, qpartial
from .qt import QtGui, QtWidgets, QtSvg, qpartial
from .qt.qimage_svg_renderer import QImageSvgRenderer
from .items.node_item import NodeItem

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View File

@@ -13,6 +13,7 @@ import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--force", help="force rebuild all files", action="store_true")
parser.add_argument("--ressources", help="force rebuild ressources", action="store_true")
args = parser.parse_args()
if sys.platform.startswith('win'):
@@ -51,7 +52,7 @@ def build_resources(path, target):
source = os.path.join(path, file)
if source.endswith(".qrc"):
target = os.path.join(target, file.replace(".qrc", "_rc.py"))
if not os.access(target, os.F_OK) or (os.stat(source)[stat.ST_MTIME] > os.stat(target)[stat.ST_MTIME]) or args.force:
if not os.access(target, os.F_OK) or (os.stat(source)[stat.ST_MTIME] > os.stat(target)[stat.ST_MTIME]) or args.force or args.ressources:
command = [PYRCC, "-compress", "9", "-o", target, source]
print("Building resources {}".format(source))
if args.force and os.access(target, os.F_OK):