diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2017-01-07 20:04:19 +0100 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2017-01-11 14:07:13 +0100 |
commit | 2a5403ce818a9dfd72a3965e138c8d9fb035a1ac (patch) | |
tree | 141f52de24f9d782c5f395a9aa46131ab67cf2a1 /grc/scripts | |
parent | 9460011e1834c07456ebad9b3549b06a0ad18fa6 (diff) |
grc: gtk3: python3 error, some cmake fixes
Diffstat (limited to 'grc/scripts')
-rwxr-xr-x | grc/scripts/gnuradio-companion | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/grc/scripts/gnuradio-companion b/grc/scripts/gnuradio-companion index c1ffdf28bc..c36837187c 100755 --- a/grc/scripts/gnuradio-companion +++ b/grc/scripts/gnuradio-companion @@ -80,6 +80,11 @@ def check_blocks_path(): "Can't find block definitions. Use config.conf or GRC_BLOCKS_PATH.") +def check_python_version(): + if sys.version_info.major > 2: + die(RuntimeError('No python3 support yet.'), 'Stay tuned...') + + def run_main(): script_path = os.path.dirname(os.path.abspath(__file__)) source_tree_subpath = "/grc/scripts" @@ -97,5 +102,6 @@ def run_main(): if __name__ == '__main__': check_gnuradio_import() check_gtk() + check_python_version() check_blocks_path() run_main() |