From: billtut at microsoft.com (Bill Tutt)
Date: Tue, 13 Apr 1999 16:22:26 GMT
Subject: site.py & COM startup
Message-ID: <4D0A23B3F74DD111ACCD00805F31D8100DB90B2B@RED-MSG-50>
X-UID: 1667                                                  

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




