feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 4a20dad was
974dddc,
checked in by Paul Brossier <piem@piem.org>, 17 years ago
|
move tests/python/demo to tests/, add localaubio.py module helpers
|
-
Property mode set to
100644
|
File size:
595 bytes
|
Rev | Line | |
---|
[974dddc] | 1 | |
---|
| 2 | # add ${src}/python and ${src}/python/aubio/.libs to python path |
---|
| 3 | # so the script is runnable from a compiled source tree. |
---|
| 4 | |
---|
| 5 | try: |
---|
| 6 | from aubio.aubiowrapper import * |
---|
| 7 | except ImportError: |
---|
| 8 | try: |
---|
| 9 | import os |
---|
| 10 | import sys |
---|
| 11 | cur_dir = os.path.dirname(sys.argv[0]) |
---|
| 12 | sys.path.append(os.path.join(cur_dir,'..','..','python')) |
---|
| 13 | sys.path.append(os.path.join(cur_dir,'..','..','python','aubio','.libs')) |
---|
| 14 | from aubio.aubiowrapper import * |
---|
| 15 | except ImportError: |
---|
| 16 | raise |
---|
| 17 | else: |
---|
| 18 | raise ImportError, "Note: the aubio module could be imported without adding the source directory to your path." |
---|
Note: See
TracBrowser
for help on using the repository browser.