Thu, 19 Nov 2020 17:41:58 +0100
UicLoadUi: added code to add the eric package directory so eric plug-in development can access the eric specific GUI extensions.
eric6/Project/UicLoadUi.py | file | annotate | diff | comparison | revisions |
--- a/eric6/Project/UicLoadUi.py Wed Nov 18 18:17:56 2020 +0100 +++ b/eric6/Project/UicLoadUi.py Thu Nov 19 17:41:58 2020 +0100 @@ -7,6 +7,7 @@ Module to get the object name, class name or signatures of a Qt form (*.ui). """ +import os import sys import json import xml.etree.ElementTree # secok @@ -24,6 +25,8 @@ except ImportError: pass +sys.path.append(os.path.dirname(os.path.dirname(__file__))) +# add the eric package directory def objectName(formFile, projectPath): """