site.py & COM startup
Robin Becker
robin at jessikat.demon.co.uk
Tue Apr 13 13:13:12 EDT 1999
In message <4D0A23B3F74DD111ACCD00805F31D8100DB90B2B at RED-MSG-50>, Bill
Tutt <billtut at microsoft.com> writes
>I typically do something like:
>
>k_strModuleName = "swv2Phoenix"
>
>if __name__ == "__main__":
> import win32com.server.register
> import sys, regsetup
> # The next line is the equivalent of regsvr32 for a Python COM server.
> win32com.server.register.UseCommandLine(swMapping)
> # Tell the python DLL where to find this .py file
> regsetup.FindRegisterModule(k_strModuleName, k_strModuleName + '.py',
>sys.path)
>
>The call into regsetup, alters the Python registry settings to register
>where the .py file is located at.
>
>Bill
thanks that's useful
--
Robin Becker
More information about the Python-list
mailing list