Add support license

This commit is contained in:
Oleg Korshul
2025-03-05 18:59:59 +03:00
parent 06f8099497
commit d2ea9521b5
4 changed files with 47 additions and 4 deletions

View File

@ -612,4 +612,10 @@ builder_path = os.path.dirname(os.path.realpath(__file__))
_loadLibrary(builder_path)
CDocBuilder.Initialize(builder_path)
def registerLibrary(license_path):
docbuilder_bin = os.path.dirname(os.path.realpath(__file__)) + os.pathsep + "docbuilder"
if ("windows" == platform.system().lower()):
docbuilder_bin += ".exe"
return subprocess.call([docbuilder_bin, license_path], stderr=subprocess.STDOUT, shell=True)
atexit.register(CDocBuilder.Dispose)