From 0b69cb314c4e63dc82bd971551cb2cdbae12a302 Mon Sep 17 00:00:00 2001 From: Balint Seeber <balint@ettus.com> Date: Fri, 4 Apr 2014 09:32:42 -0700 Subject: grc: honour order of block paths, print them out on startup, override hier block and pref file path with GRC_HIER_PATH & GRC_PREFS_PATH --- grc/python/Constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grc/python/Constants.py') diff --git a/grc/python/Constants.py b/grc/python/Constants.py index 0e974df43c..9f27589b52 100644 --- a/grc/python/Constants.py +++ b/grc/python/Constants.py @@ -25,7 +25,7 @@ _gr_prefs = gr.prefs() #setup paths PATH_SEP = {'/':':', '\\':';'}[os.path.sep] -HIER_BLOCKS_LIB_DIR = os.path.join(os.path.expanduser('~'), '.grc_gnuradio') +HIER_BLOCKS_LIB_DIR = os.path.join(os.path.expanduser('~'), os.environ.get('GRC_HIER_PATH', '.grc_gnuradio')) BLOCKS_DIRS = filter( #filter blank strings lambda x: x, PATH_SEP.join([ os.environ.get('GRC_BLOCKS_PATH', ''), -- cgit v1.2.3