summaryrefslogtreecommitdiff
path: root/gr-uhd/grc
diff options
context:
space:
mode:
authorJohnathan Corgan2012-03-13 17:38:12 -0700
committerJohnathan Corgan2012-03-13 17:38:12 -0700
commit62c6323bdb06d7d3f103d3a75265d45ae6ce00b4 (patch)
tree7f995aba5eb3f2e0bfeac3a4114307fd2c5a6f3a /gr-uhd/grc
parent83c6ee03ada6a44788421ebfe813b7d594fc8a7a (diff)
parent8e013157752f1b42665430fde0f1c6f7d7147153 (diff)
downloadgnuradio-62c6323bdb06d7d3f103d3a75265d45ae6ce00b4.tar.gz
gnuradio-62c6323bdb06d7d3f103d3a75265d45ae6ce00b4.tar.bz2
gnuradio-62c6323bdb06d7d3f103d3a75265d45ae6ce00b4.zip
Merge remote branch 'gnuradio/maint' into gr-uhd-set-user-register
Diffstat (limited to 'gr-uhd/grc')
-rw-r--r--gr-uhd/grc/gen_uhd_usrp_blocks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-uhd/grc/gen_uhd_usrp_blocks.py b/gr-uhd/grc/gen_uhd_usrp_blocks.py
index 67343541c..25b0a4c46 100644
--- a/gr-uhd/grc/gen_uhd_usrp_blocks.py
+++ b/gr-uhd/grc/gen_uhd_usrp_blocks.py
@@ -411,10 +411,10 @@ max_num_channels = max_num_mboards*4
if __name__ == '__main__':
import sys
for file in sys.argv[1:]:
- if 'source' in file:
+ if file.endswith ('source.xml'):
sourk = 'source'
direction = 'out'
- elif 'sink' in file:
+ elif file.endswith ('sink.xml'):
sourk = 'sink'
direction = 'in'
else: raise Exception, 'is %s a source or sink?'%file