diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2013-09-07 21:49:15 -0300 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-09-07 21:49:15 -0300 |
commit | 8a1ff8294a353935b1464b440b6d0c0e1f1ec4aa (patch) | |
tree | 75e5ecc05f0aea0827042e8bea0389e93f2bc0f3 /gr-uhd/python/uhd | |
parent | 0250fbd72b724eb1aa485fd25bc0f0c74f7946c3 (diff) |
Fix missing module imports in error case
Diffstat (limited to 'gr-uhd/python/uhd')
-rw-r--r-- | gr-uhd/python/uhd/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gr-uhd/python/uhd/__init__.py b/gr-uhd/python/uhd/__init__.py index fa181f8091..21f066bf1f 100644 --- a/gr-uhd/python/uhd/__init__.py +++ b/gr-uhd/python/uhd/__init__.py @@ -32,6 +32,7 @@ def _prepare_uhd_swig(): try: import uhd_swig except ImportError: + import os dirname, filename = os.path.split(os.path.abspath(__file__)) __path__.append(os.path.join(dirname, "..", "..", "swig")) import uhd_swig |