summaryrefslogtreecommitdiff
path: root/grc/scripts
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2015-04-09 16:21:05 +0200
committerSebastian Koslowski <koslowski@kit.edu>2015-04-09 16:21:05 +0200
commit7d2a39080db046b6b35e8aa8371335571e76030f (patch)
tree50e32d7b5bdb3463091e206378f848039631dea4 /grc/scripts
parent381b162a3ca8e476866f0387e9a2f5016f87cfae (diff)
grc: use abs path for source tree run mode
Diffstat (limited to 'grc/scripts')
-rwxr-xr-xgrc/scripts/gnuradio-companion2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/scripts/gnuradio-companion b/grc/scripts/gnuradio-companion
index 239fc95d8a..7a407eaaf8 100755
--- a/grc/scripts/gnuradio-companion
+++ b/grc/scripts/gnuradio-companion
@@ -74,7 +74,7 @@ def ensure_blocks_path():
def get_source_tree_root():
source_tree_subpath = "/grc/scripts"
- script_path = os.path.dirname(__file__)
+ script_path = os.path.dirname(os.path.abspath(__file__))
if script_path.endswith(source_tree_subpath):
return script_path[:-len(source_tree_subpath)]