diff options
author | Ben Reynwar <ben@reynwar.net> | 2013-06-14 08:41:21 -0700 |
---|---|---|
committer | Ben Reynwar <ben@reynwar.net> | 2013-06-14 08:41:21 -0700 |
commit | 1d453860e9407f112169b05e592efca76799124f (patch) | |
tree | 79493a10eb2f0dbfa642e0d2520d3b57660d8c24 /gr-wxgui/python | |
parent | 72776a40ae93c785dc527dd7ba0204716cc45b1a (diff) |
uninstalled import: Adding overlooked exception handling around imports.
Diffstat (limited to 'gr-wxgui/python')
-rw-r--r-- | gr-wxgui/python/wxgui/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gr-wxgui/python/wxgui/__init__.py b/gr-wxgui/python/wxgui/__init__.py index dd81647fe9..4b99dee9d9 100644 --- a/gr-wxgui/python/wxgui/__init__.py +++ b/gr-wxgui/python/wxgui/__init__.py @@ -23,4 +23,9 @@ Provides a GUI interface using the Wx backend. ''' -from wxgui_swig import * +try: + from wxgui_swig import * +except ImportError: + dirname, filename = os.path.split(os.path.abspath(__file__)) + __path__.append(os.path.join(dirname, "..", "..", "swig")) + from wxgui_swig import * |