site.py & COM startup
Bill Tutt
billtut at microsoft.com
Tue Apr 13 12:22:26 EDT 1999
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
More information about the Python-list
mailing list