From: robin at jessikat.demon.co.uk (Robin Becker)
Date: Tue, 13 Apr 1999 17:13:12 GMT
Subject: site.py & COM startup
In-Reply-To: <4D0A23B3F74DD111ACCD00805F31D8100DB90B2B@RED-MSG-50>
References: <4D0A23B3F74DD111ACCD00805F31D8100DB90B2B@RED-MSG-50>
Message-ID: <8DzenAAos3E3EwyI@jessikat.demon.co.uk>
X-UID: 1335                                                  

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




