Changeset a250b35 for tests/python


Ignore:
Timestamp:
Sep 26, 2009, 1:04:44 AM (15 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:
fcacd88
Parents:
7cec717
Message:

tests/python/localaubio.py: add some tricks to work with waf too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/python/localaubio.py

    r7cec717 ra250b35  
    99    import os
    1010    import sys
    11     cur_dir = os.path.dirname(sys.argv[0])
     11    cur_dir = os.path.dirname(__file__)
    1212    sys.path.append(os.path.join(cur_dir,'..','..','python'))
     13    # waf places
    1314    sys.path.append(os.path.join(cur_dir,'..','..','python','aubio','.libs'))
    14     from aubio.aubiowrapper import *
     15    sys.path.append(os.path.join(cur_dir,'..','..','build', 'default', 'swig'))
     16    # autotools places
     17    sys.path.append(os.path.join(cur_dir,'..','..','build', 'default', 'python','aubio'))
     18    try:
     19      from aubiowrapper import *
     20    except ImportError:
     21      from aubio.aubiowrapper import *
    1522  except ImportError:
    1623    raise
Note: See TracChangeset for help on using the changeset viewer.