source: python.old/aubio/bench/config.py @ bd1fa89

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since bd1fa89 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
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        pass
18
19if 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.