summaryrefslogtreecommitdiff
path: root/gr-uhd/grc/gen_uhd_usrp_blocks.py
diff options
context:
space:
mode:
authorJohnathan Corgan2012-02-14 11:23:42 -0800
committerJohnathan Corgan2012-02-14 11:23:42 -0800
commit37021a4c1393026de88725565ba23ebd6d0cc4d9 (patch)
tree377408e3f782c0d02ae268165e61508a970df423 /gr-uhd/grc/gen_uhd_usrp_blocks.py
parent32225905cb4fef7364668fffc16c808ac6c3bee8 (diff)
parentdc266ca38bdc59955f8c8d8a98291f078d7f4377 (diff)
downloadgnuradio-37021a4c1393026de88725565ba23ebd6d0cc4d9.tar.gz
gnuradio-37021a4c1393026de88725565ba23ebd6d0cc4d9.tar.bz2
gnuradio-37021a4c1393026de88725565ba23ebd6d0cc4d9.zip
Merge branch 'master' into next
Diffstat (limited to 'gr-uhd/grc/gen_uhd_usrp_blocks.py')
-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