shithub: aubio

Download patch

ref: a9f16569444fa1b488f1c72e66f197f96132fda9
parent: 3c18f9ee1f7276f0557e2f2ca1255f9955a1268e
author: Paul Brossier <piem@piem.org>
date: Wed Oct 7 21:19:48 EDT 2009

tests/python/localaubio.py: simplify, also import template

--- a/tests/python/localaubio.py
+++ b/tests/python/localaubio.py
@@ -11,14 +11,12 @@
     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 @@
     your path. Make sure you NO other version of the python aubio module is
     installed on your system.
     """
+
+from template import *