From 70a7b636182d9747c11963cfd283e173f7eccc14 Mon Sep 17 00:00:00 2001 From: Rentlau Date: Sat, 23 May 2015 06:45:55 +0100 Subject: [PATCH] Release of 2015-05-23 : Bug correction : QT Icons path for FreeCAD was replaced inducing an not found icon error message. --- WorkFeature/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/WorkFeature/__init__.py b/WorkFeature/__init__.py index d2d3f55..af7ea5f 100644 --- a/WorkFeature/__init__.py +++ b/WorkFeature/__init__.py @@ -52,10 +52,11 @@ if not sys.path.__contains__("/usr/lib/freecad/lib"): import WFGui_2015 as WFGui from WF_ObjRot_2015 import * global myRelease -myRelease = "2105_03_31" +myRelease = "2015_05_23" import os.path import math +import itertools import FreeCAD as App import FreeCADGui as Gui @@ -71,7 +72,7 @@ from PySide import QtCore, QtGui # assume the Icons directory in the same directory as this MACRO file ICONS_PATH = os.path.dirname(__file__) + "/Icons" # use "icons" as prefix which we used in the .ui file -QtCore.QDir.setSearchPaths("icons", [ICONS_PATH]) +QtCore.QDir.addSearchPath("icons", ICONS_PATH) # LineColor red = 1.0 # 1 = 255