diff options
author | Michael Dickens <mlk@alum.mit.edu> | 2012-02-14 11:08:53 -0800 |
---|---|---|
committer | Johnathan Corgan <jcorgan@corganenterprises.com> | 2012-02-14 11:08:53 -0800 |
commit | f69708ec3ca83d019a50396a5947abb24bee15d3 (patch) | |
tree | 712da566747dd164c7e0a26487dfb6ea58e46093 /gr-uhd/grc | |
parent | 5fbdd919e9a32710d118fa29018dfb3ffff43ed5 (diff) |
uhd: fix source block xml file generation
Diffstat (limited to 'gr-uhd/grc')
-rw-r--r-- | gr-uhd/grc/gen_uhd_usrp_blocks.py | 4 |
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 |