summaryrefslogtreecommitdiff
path: root/gr-uhd
diff options
context:
space:
mode:
authorJohnathan Corgan <jcorgan@corganenterprises.com>2012-02-14 11:19:16 -0800
committerJohnathan Corgan <jcorgan@corganenterprises.com>2012-02-14 11:19:16 -0800
commitdc266ca38bdc59955f8c8d8a98291f078d7f4377 (patch)
treeecd617abcffa3e643fc7cec878c93332f5acc79f /gr-uhd
parent1c4175858b4cfd34f15ae2014385923ae06b32c5 (diff)
parent183d816afa83e83bb39b722239c1245975b8e13e (diff)
Merge branch 'maint'
Diffstat (limited to 'gr-uhd')
-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 67343541c1..25b0a4c467 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