UicLoadUi: added code to add the eric package directory so eric plug-in development can access the eric specific GUI extensions.

Thu, 19 Nov 2020 17:41:58 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 19 Nov 2020 17:41:58 +0100
changeset 7834
6ffe1fe2ab4a
parent 7833
4bc2413f6123
child 7835
0835ed67714b

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
diff -r 4bc2413f6123 -r 6ffe1fe2ab4a eric6/Project/UicLoadUi.py
--- 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):
     """

eric ide

mercurial