diff options
Diffstat (limited to 'grc/scripts/gnuradio-companion')
-rwxr-xr-x | grc/scripts/gnuradio-companion | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/grc/scripts/gnuradio-companion b/grc/scripts/gnuradio-companion index 04a1cb44e7..6130582f35 100755 --- a/grc/scripts/gnuradio-companion +++ b/grc/scripts/gnuradio-companion @@ -26,13 +26,16 @@ source_tree_subpath = "/grc/scripts" if not script_path.endswith(source_tree_subpath): # run the installed version - from gnuradio.grc.main import main from gnuradio.grc import checks + checks.do_all() + from gnuradio.grc.main import main + exit(main()) + else: print("Running from source tree") sys.path.insert(1, script_path[:-len(source_tree_subpath)]) - from grc.main import main from grc import checks + checks.do_all() + from grc.main import main + exit(main()) -checks.do_all() -exit(main()) |