[pywin32-checkins] pywin32/com/win32comext/directsound/test ds_test.py,1.1,1.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2004-12-02 09:53:01
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/directsound/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv382 Modified Files: ds_test.py Log Message: Remove hard-coded directory Index: ds_test.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/directsound/test/ds_test.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ds_test.py 30 Nov 2004 21:30:28 -0000 1.1 --- ds_test.py 2 Dec 2004 09:52:52 -0000 1.2 *************** *** 2,8 **** import struct import sys import pywintypes import win32event - # sys.path = ['.'] + sys.path import win32com.directsound.directsound as ds # next two lines are for for debugging: --- 2,8 ---- import struct import sys + import os import pywintypes import win32event import win32com.directsound.directsound as ds # next two lines are for for debugging: *************** *** 182,187 **** def testPlay(self): '''Play a file''' ! ! f = open('d:/temp/01-Intro.wav', 'rb') hdr = f.read(WAV_HEADER_SIZE) wfx, size = wav_header_unpack(hdr) --- 182,187 ---- def testPlay(self): '''Play a file''' ! fname=os.path.join(os.path.dirname(__file__), "01-Intro.wav") ! f = open(fname, 'rb') hdr = f.read(WAV_HEADER_SIZE) wfx, size = wav_header_unpack(hdr) |