summaryrefslogtreecommitdiff
path: root/gr-qtgui/python
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/python')
-rw-r--r--gr-qtgui/python/qtgui/CMakeLists.txt (renamed from gr-qtgui/python/CMakeLists.txt)0
-rw-r--r--gr-qtgui/python/qtgui/__init__.py (renamed from gr-qtgui/python/__init__.py)9
-rwxr-xr-xgr-qtgui/python/qtgui/qa_qtgui.py (renamed from gr-qtgui/python/qa_qtgui.py)0
3 files changed, 7 insertions, 2 deletions
diff --git a/gr-qtgui/python/CMakeLists.txt b/gr-qtgui/python/qtgui/CMakeLists.txt
index 5822858082..5822858082 100644
--- a/gr-qtgui/python/CMakeLists.txt
+++ b/gr-qtgui/python/qtgui/CMakeLists.txt
diff --git a/gr-qtgui/python/__init__.py b/gr-qtgui/python/qtgui/__init__.py
index 82e36597be..aaea875f04 100644
--- a/gr-qtgui/python/__init__.py
+++ b/gr-qtgui/python/qtgui/__init__.py
@@ -25,6 +25,11 @@ sinks.
'''
# The presence of this file turns this directory into a Python package
+import os
-from qtgui_swig import *
-#import qtgui_swig as qtgui # to preserve the old interface
+try:
+ from qtgui_swig import *
+except ImportError:
+ dirname, filename = os.path.split(os.path.abspath(__file__))
+ __path__.append(os.path.join(dirname, "..", "..", "swig"))
+ from qtgui_swig import *
diff --git a/gr-qtgui/python/qa_qtgui.py b/gr-qtgui/python/qtgui/qa_qtgui.py
index 0761ed3be9..0761ed3be9 100755
--- a/gr-qtgui/python/qa_qtgui.py
+++ b/gr-qtgui/python/qtgui/qa_qtgui.py