From a9f16569444fa1b488f1c72e66f197f96132fda9 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 8 Oct 2009 01:19:48 +0200 Subject: [PATCH] tests/python/localaubio.py: simplify, also import template --- tests/python/localaubio.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 * -- 2.26.2