Fix bug 75287

This commit is contained in:
Oleg Korshul
2025-06-30 14:05:23 +03:00
parent e0bcffda13
commit 0f6412b6a4

View File

@ -76,9 +76,12 @@ for file in filesReplace:
testDevelopVersion = sdkjsDirectory + "/.git"
if not os.path.isdir(testDevelopVersion):
print("Not in develop version, skipping x2t cache update")
x2tDir = curDirectory + "/../FileConverter/bin"
cur_dir = os.getcwd()
os.chdir(x2tDir)
x2tBin = curDirectory + "/../FileConverter/bin/x2t"
if ("windows" == platform.system().lower()):
x2tBin += ".exe"
subprocess.call([x2tBin, "-create-js-cache"], stderr=subprocess.STDOUT, shell=True)
command = x2tBin + " -create-js-cache"
subprocess.call(command, stderr=subprocess.STDOUT, shell=True)
subprocess.call(["x2t.exe", "-create-js-cache"], stderr=subprocess.STDOUT, shell=True)
else:
subprocess.call("x2t -create-js-cache", stderr=subprocess.STDOUT, shell=True)
os.chdir(cur_dir)