When you register a COM server from the commandline and
the COM server script pathname has spaces inside as for
example "C:\Documents and Setings\..." the
localserver32 cannot instantiate correctly, because of
the argument for the python interpreter has spaces
inside and is not surrounded by quotes.
To correct this behaviour I changed a line in
ctypes\com\register.py. (Line 83) to:
exe = "%s \"%s\"" % (sys.executable,
So, when you register a COM server the winreg key
LocalServer32 becomes a value whose argument is
enclosed by quotes.
Log in to post a comment.