feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 677b267 was
d45520a,
checked in by Paul Brossier <piem@altern.org>, 19 years ago
|
do not sys.exit, add keywords to act_on_data
do not sys.exit, add keywords to act_on_data
|
-
Property mode set to
100644
|
File size:
549 bytes
|
Line | |
---|
1 | |
---|
2 | filefound = 0 |
---|
3 | try: |
---|
4 | filename = "/etc/aubio-bench.conf" |
---|
5 | execfile(filename) |
---|
6 | filefound = 1 |
---|
7 | except IOError: |
---|
8 | print "no system wide configuration file found in", filename |
---|
9 | |
---|
10 | try: |
---|
11 | import os |
---|
12 | filename = "%s%s%s" % (os.getenv('HOME'),os.sep,".aubio-bench.conf") |
---|
13 | execfile(filename) |
---|
14 | filefound = 1 |
---|
15 | except IOError: |
---|
16 | #print "no user configuration file found in", filename |
---|
17 | pass |
---|
18 | |
---|
19 | if filefound == 0: |
---|
20 | import sys |
---|
21 | print "error: no configuration file found at all" |
---|
22 | sys.exit(1) |
---|
Note: See
TracBrowser
for help on using the repository browser.