-
Notifications
You must be signed in to change notification settings - Fork 85
Changed gen-files' encoding to UTF-8 and updated README.md #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,10 +58,10 @@ sources = [ | |
] | ||
|
||
if env['tools']: | ||
with open("tools/godot.d.ts.gen.cpp", "w") as f: | ||
with open("tools/godot.d.ts.gen.cpp", "w", encoding="utf-8") as f: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Python2 does not support this kind of syntax. Which is the default python version on macOS. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Godot 3.2 is now only compileable with Python 3.5+ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not only on Mac OS X, other systems too. So, now there is no need to remake that for Python 2. |
||
text = '/* THIS FILE IS GENERATED DO NOT EDIT */\n#include "editor_tools.h"\nString ECMAScriptPlugin::BUILTIN_DECLEARATION_TEXT = \n${source};'; | ||
f.write(text.replace('${source}', dump_text_file_to_cpp("misc/godot.d.ts"))) | ||
with open("tools/tsconfig.json.gen.cpp", "w") as f: | ||
with open("tools/tsconfig.json.gen.cpp", "w", encoding="utf-8") as f: | ||
text = '/* THIS FILE IS GENERATED DO NOT EDIT */\n#include "editor_tools.h"\nString ECMAScriptPlugin::TSCONFIG_CONTENT = \n${source};' | ||
f.write(text.replace('${source}', dump_text_file_to_cpp("misc/tsconfig.json"))) | ||
env_module.add_source_files(env.modules_sources, 'tools/*.cpp') | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using
**Bold content**
in markdown instead of<b></b>