Changeset ddc9733


Ignore:
Timestamp:
Apr 7, 2017, 3:34:41 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
Children:
5b44a26
Parents:
f4dbf64b
Message:

this_version.py: add options to get only libaubio or python-aubio version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • this_version.py

    rf4dbf64b rddc9733  
    9999
    100100if __name__ == '__main__':
    101     print ('%30s'% 'aubio version:', get_aubio_version())
    102     print ('%30s'% 'python-aubio version:', get_aubio_pyversion())
     101    if len(sys.argv) > 1 and sys.argv[1] == '-v':
     102        print (get_aubio_version())
     103    elif len(sys.argv) > 1 and sys.argv[1] == '-p':
     104        print (get_aubio_version())
     105    else:
     106        print ('%30s'% 'aubio version:', get_aubio_version())
     107        print ('%30s'% 'python-aubio version:', get_aubio_pyversion())
Note: See TracChangeset for help on using the changeset viewer.