Update of /cvsroot/pywin32/pywin32/com/win32com/test
In directory sc8-pr-cvs1:/tmp/cvs-serv28888
Modified Files:
testAXScript.py
Log Message:
Use the new utility function to register the server.
Index: testAXScript.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testAXScript.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** testAXScript.py 18 Nov 2002 11:20:06 -0000 1.3
--- testAXScript.py 23 Oct 2003 07:09:30 -0000 1.4
***************
*** 5,16 ****
import win32com.axscript.client
file = win32api.GetFullPathName(os.path.join(win32com.axscript.client.__path__[0], "pyscript.py"))
! cmd = '%s "%s" > nul' % (win32api.GetModuleFileName(0), file)
! if verbose:
! print "Registering engine"
! # print cmd
! rc = os.system(cmd)
! if rc:
! print "Registration of engine failed"
!
def TestHost(verbose = 1):
--- 5,10 ----
import win32com.axscript.client
file = win32api.GetFullPathName(os.path.join(win32com.axscript.client.__path__[0], "pyscript.py"))
! from util import RegisterPythonServer
! RegisterPythonServer(file, verbose)
def TestHost(verbose = 1):
|