feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 9ead7a9 was
b554e41,
checked in by Paul Brossier <piem@piem.org>, 12 years ago
|
moved out old python interface
|
-
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.