summaryrefslogtreecommitdiff
path: root/gr-qtgui/python/qtgui/__init__.py
diff options
context:
space:
mode:
authorBen Reynwar <ben@reynwar.net>2013-03-08 20:18:56 -0700
committerBen Reynwar <ben@reynwar.net>2013-03-08 20:18:56 -0700
commit931817973a1bec623e5b77cb87ea56d51ccd888f (patch)
tree41f74bb5b29856abb8cd6c3d2435168a6a121a12 /gr-qtgui/python/qtgui/__init__.py
parentb720b61cbd6b9a231b5ff05dbb262aadc5ce2522 (diff)
qtgui: Enabling uninstalled python imports.
Diffstat (limited to 'gr-qtgui/python/qtgui/__init__.py')
-rw-r--r--gr-qtgui/python/qtgui/__init__.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/gr-qtgui/python/qtgui/__init__.py b/gr-qtgui/python/qtgui/__init__.py
new file mode 100644
index 0000000000..aaea875f04
--- /dev/null
+++ b/gr-qtgui/python/qtgui/__init__.py
@@ -0,0 +1,35 @@
+#
+# Copyright 2011 Free Software Foundation, Inc.
+#
+# This file is part of GNU Radio
+#
+# GNU Radio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GNU Radio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Radio; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+#
+
+'''
+This is the gr-qtgui package. This package includes QT-based graphical
+sinks.
+'''
+
+# The presence of this file turns this directory into a Python package
+import os
+
+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 *