From 90cd02375dec02e6eb45d00859c037db03ea808d Mon Sep 17 00:00:00 2001 From: Johnson Murphy Date: Wed, 15 May 2024 20:27:26 +0800 Subject: [PATCH] fixed some bugs --- .github/workflows/build_addon.yml | 4 ++-- sconstruct | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_addon.yml b/.github/workflows/build_addon.yml index 8c12068..c473ea8 100644 --- a/.github/workflows/build_addon.yml +++ b/.github/workflows/build_addon.yml @@ -4,7 +4,7 @@ on: push: tags: ["*"] # To build on main/master branch, uncomment the following line: - branches: [ main , master ] + # branches: [ main , master ] pull_request: branches: [ main, master ] @@ -24,7 +24,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.10 cache: 'pip' - name: Install dependencies diff --git a/sconstruct b/sconstruct index 36804f1..38a4e62 100644 --- a/sconstruct +++ b/sconstruct @@ -210,7 +210,7 @@ def generateTranslatedManifest(source, language, out): for table in buildVars.brailleTables.keys(): result_brailleTables.append(f"[[{table}]]") # Fetch display name only. - result_brailleTables.append(f"displayName = {buildVars.brailleTables[table]["displayName"]}") + result_brailleTables.append(f"displayName = {buildVars.brailleTables[table]['displayName']}") result += "\n".join(result_brailleTables) + "\n" with codecs.open(out, "w", "utf-8") as f: f.write(result)