This is a very simple / trivial fix.

For distros with a native Python version of at least 3.0, the current
gnuradio-companion executable will default to failing because it can't find
the gnuradio site-packages in the Python 3.0 site-packages.

This patch is a 3-character fix that makes 'env' explicitly return the
executable to Python2.7.

Note that if we are still supporting users that use Python2.6, this will
fail, and this patch should be ignored. If this is the case, I'll add a note
to the Wiki about fixing the Python path for Python3 users.

Cheers,
Ben
From 7a7861ed09426c172463288c2754634ebac0d5ef Mon Sep 17 00:00:00 2001
From: bhilburn <b...@ettus.com>
Date: Thu, 22 Sep 2011 13:01:12 -0700
Subject: [PATCH] Fixing executable line for GRC for systems with native
 Python >= 3.0

---
 grc/scripts/gnuradio-companion |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/grc/scripts/gnuradio-companion b/grc/scripts/gnuradio-companion
index a4115c3..806ec74 100755
--- a/grc/scripts/gnuradio-companion
+++ b/grc/scripts/gnuradio-companion
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.7
 """
 Copyright 2009 Free Software Foundation, Inc.
 This file is part of GNU Radio
-- 
1.7.6.3

_______________________________________________
Patch-gnuradio mailing list
Patch-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/patch-gnuradio

Reply via email to