From: Paul Brossier Date: Wed, 17 Feb 2010 15:16:11 +0000 (+0000) Subject: tests/api/: only import os.path, use os.path.join X-Git-Tag: 0.3.2~202 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6fe2079d2375f05926e1bc7126ff3bebed96ce62;p=timeside.git tests/api/: only import os.path, use os.path.join --- diff --git a/tests/api/test_lolevel.py b/tests/api/test_lolevel.py index 5e01e40..c508511 100644 --- a/tests/api/test_lolevel.py +++ b/tests/api/test_lolevel.py @@ -1,6 +1,6 @@ from timeside.tests.api import examples -import os +import os.path source= os.path.join (os.path.dirname(__file__), "../samples/guitar.wav") Decoder = examples.FileDecoder diff --git a/tests/api/test_pipe.py b/tests/api/test_pipe.py index 87ce4a7..9bf6d1b 100644 --- a/tests/api/test_pipe.py +++ b/tests/api/test_pipe.py @@ -4,8 +4,8 @@ from timeside.core import * from timeside.api import * from sys import stdout -import os -source=os.path.dirname(__file__) + "../samples/guitar.wav" +import os.path +source = os.path.join(os.path.dirname(__file__), "../samples/guitar.wav") print "Normalizing %s" % source decoder = examples.FileDecoder(source) diff --git a/tests/api/test_pipe2.py b/tests/api/test_pipe2.py index d34a1b0..d2116fc 100644 --- a/tests/api/test_pipe2.py +++ b/tests/api/test_pipe2.py @@ -3,8 +3,8 @@ from timeside.core import * from timeside.api import * from sys import stdout -import os -source=os.path.dirname(__file__) + "../samples/guitar.wav" +import os.path +source = os.path.join (os.path.dirname(__file__), "../samples/guitar.wav") print "Normalizing %s" % source decoder = examples.FileDecoder(source)