source: python/aubio/bench/config.py @ 4cc9fe5

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 4cc9fe5 was 4cc9fe5, checked in by Paul Brossier <piem@altern.org>, 19 years ago

added bench tools

  • Property mode set to 100644
File size: 542 bytes
Line 
1
2filefound = 0
3try:
4        filename = "/etc/aubio-bench.conf"
5        execfile(filename)
6        filefound = 1
7except IOError:
8        print "no system wide configuration file found in", filename
9
10try:
11        import os
12        filename = "%s%s%s" % (os.getenv('HOME'),os.sep,".aubio-bench.conf")
13        execfile(filename)
14        filefound = 1
15except IOError:
16        print "no user configuration file found in", filename
17
18if filefound == 0:
19        import sys
20        print "error: no configuration file found at all"
21        sys.exit(1)
Note: See TracBrowser for help on using the repository browser.