Skip to content

Commit

Permalink
Fix compile error with python 3.8 on windows with MSYS2
Browse files Browse the repository at this point in the history
  • Loading branch information
Geequlim committed Jan 10, 2020
1 parent fbd59cb commit 356fd8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def quickjs():
env_module.add_source_files(env.modules_sources, 'quickjs/quickjs/*.c')

def dump_text_file_to_cpp(file):
source = open(file, 'r').read()
source = open(file, 'r', encoding='utf8').read()
lines = source.split('\n')
source = ""
length = len(lines)
Expand Down
2 changes: 1 addition & 1 deletion generate_builtin_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import xml.etree.ElementTree as ET

MODULE_DIR = os.getcwd()
MODULE_DIR = "/home/geequlim/Documents/Workspace/Develop/Godot/godot/modules/ECMAScript"
# MODULE_DIR = "/home/geequlim/Documents/Workspace/Develop/Godot/godot/modules/ECMAScript"
DOCS_DIR = os.path.abspath(os.path.join(MODULE_DIR, "../../doc/classes"))
if not os.path.isdir(DOCS_DIR) and len(sys.argv) > 1:
DOCS_DIR = sys.argv[-1]
Expand Down

0 comments on commit 356fd8b

Please sign in to comment.