From ba9810128a9a8a75132f76f73ffbcf0a645f38cc Mon Sep 17 00:00:00 2001 From: Oleg Korshul Date: Mon, 30 Jun 2025 14:05:23 +0300 Subject: [PATCH] Fix bug 75287 --- dictionaries/update.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dictionaries/update.py b/dictionaries/update.py index 37f51471..b614d635 100644 --- a/dictionaries/update.py +++ b/dictionaries/update.py @@ -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)