mirror of
https://github.com/GNS3/gns3-gui.git
synced 2026-05-17 00:46:01 +03:00
Merge branch 'master' into 1.5
This commit is contained in:
@@ -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
|
||||
|
||||
298444
gns3/ui/resources_rc.py
298444
gns3/ui/resources_rc.py
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 |
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user