Fix bug 73788

This commit is contained in:
Oleg Korshul
2025-04-12 14:34:01 +03:00
parent c84f2a11d5
commit fa5fa35a34
2 changed files with 5 additions and 1 deletions

View File

@ -81,6 +81,8 @@ void parse_args(NSDoctRenderer::CDocBuilder* builder, int argc, char *argv[])
bool CheckLicense(const std::wstring& sSrc, const std::wstring& sDst) bool CheckLicense(const std::wstring& sSrc, const std::wstring& sDst)
{ {
if (sDst.empty())
return false;
NSFile::CFileBinary::Remove(sDst); NSFile::CFileBinary::Remove(sDst);
NSFile::CFileBinary::Copy(sSrc, sDst); NSFile::CFileBinary::Copy(sSrc, sDst);
return NSFile::CFileBinary::Exists(sDst); return NSFile::CFileBinary::Exists(sDst);

View File

@ -618,6 +618,8 @@ def registerLibrary(license_path):
docbuilder_bin = os.path.join(builder_path, "docbuilder") docbuilder_bin = os.path.join(builder_path, "docbuilder")
if ("windows" == platform.system().lower()): if ("windows" == platform.system().lower()):
docbuilder_bin += ".exe" 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)
command = docbuilder_bin + " -register \"" + license_path.replace('\"', '\\\"') + "\""
return subprocess.call(command, stderr=subprocess.STDOUT, shell=True)
atexit.register(CDocBuilder.Dispose) atexit.register(CDocBuilder.Dispose)