Remove lib directory

This commit is contained in:
Mikhail Lobotskiy
2025-03-17 15:29:49 +04:00
parent 410e8100fe
commit 2ab94263f2

View File

@ -609,14 +609,14 @@ class FileTypes:
PNG = _IMAGE_MASK + 0x0005
BMP = _IMAGE_MASK + 0x0008
builder_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'lib')
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__)) + "/lib/docbuilder"
docbuilder_bin = os.path.join(builder_path, "docbuilder")
if ("windows" == platform.system().lower()):
docbuilder_bin += ".exe"
return subprocess.call([docbuilder_bin, "-register", license_path], stderr=subprocess.STDOUT, shell=True)
return subprocess.call([docbuilder_bin, "-register", license_path], stderr=subprocess.STDOUT, shell=True)
atexit.register(CDocBuilder.Dispose)