current position:Home>Python 32bit desert plug-in registration

Python 32bit desert plug-in registration

2022-02-02 11:26:58 Light has me

` Insert a code chip here `import os
from comtypes import client
def regDM():
    '''  Sign up for fun plug-ins , Need to put the document dm.dll Put it in the root directory  :return:  return dm object  '''
    try:
        lw = client.CreateObject("dm.dmsoft")
    except:
        os.system('regsvr32 dm.dll')
        lw = client.CreateObject("dm.dmsoft")
    return lw
# Uninstall from the system dm
def unRegDM():
    '''  Uninstall from the system dm plug-in unit , Sometimes registration fails , You can uninstall  :return: '''
    os.system('regsvr32 dm.dll /u')
dm = regDM()
print(dm.ver())
print(dm.ver())# Output version number 

copyright notice
author[Light has me],Please bring the original link to reprint, thank you.
https://en.pythonmana.com/2022/02/202202021126569254.html

Random recommended