Changeset 1e1a2c9 for python/scripts


Ignore:
Timestamp:
Nov 20, 2013, 2:47:51 AM (11 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, pitchshift, sampler, timestretch, yinfft+
Children:
dedeffc
Parents:
d4c0932
Message:

python/scripts/aubiocut: make -i optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/scripts/aubiocut

    rd4c0932 r1e1a2c9  
    115115    (options, args) = parser.parse_args()
    116116    if not options.source_file:
    117         print "no file name given\n", usage
    118         sys.exit(1)
     117        import os.path
     118        if len(args) == 1:
     119            options.source_file = args[0]
     120        else:
     121            print "no file name given\n", usage
     122            sys.exit(1)
    119123    return options, args
    120124
Note: See TracChangeset for help on using the changeset viewer.