From: Paul Brossier Date: Wed, 7 Oct 2009 23:19:48 +0000 (+0200) Subject: tests/python/localaubio.py: simplify, also import template X-Git-Tag: bzr2git~182 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a9f16569444fa1b488f1c72e66f197f96132fda9;p=aubio.git tests/python/localaubio.py: simplify, also import template --- diff --git a/tests/python/localaubio.py b/tests/python/localaubio.py index bf4488a0..1b13b564 100644 --- a/tests/python/localaubio.py +++ b/tests/python/localaubio.py @@ -11,14 +11,12 @@ except ImportError: cur_dir = os.path.dirname(__file__) sys.path.append(os.path.join(cur_dir,'..','..','python')) # waf places + sys.path.append(os.path.join(cur_dir,'..','..','python','aubio')) sys.path.append(os.path.join(cur_dir,'..','..','python','aubio','.libs')) - sys.path.append(os.path.join(cur_dir,'..','..','build', 'default', 'swig')) # autotools places + sys.path.append(os.path.join(cur_dir,'..','..','build', 'default', 'swig')) sys.path.append(os.path.join(cur_dir,'..','..','build', 'default', 'python','aubio')) - try: - from aubiowrapper import * - except ImportError: - from aubio.aubiowrapper import * + from aubiowrapper import * except ImportError: raise else: @@ -28,3 +26,5 @@ else: your path. Make sure you NO other version of the python aubio module is installed on your system. """ + +from template import *