diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-03-11 13:05:37 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-03-11 13:20:09 -0500 |
commit | 5a6e3cbcb03c3f756344a38259f3774ddaf1a63d (patch) | |
tree | a435d3f986a1ca0e179d311ac4a5a11e2a67ea02 /core/extension | |
parent | f040a351c2f27c6b86c40c71a28babf99dd0b9bd (diff) | |
download | redot-engine-5a6e3cbcb03c3f756344a38259f3774ddaf1a63d.tar.gz |
SCons: Remove `run_in_subprocess` dependency
Diffstat (limited to 'core/extension')
-rw-r--r-- | core/extension/make_interface_dumper.py | 10 | ||||
-rw-r--r-- | core/extension/make_wrappers.py | 8 |
2 files changed, 3 insertions, 15 deletions
diff --git a/core/extension/make_interface_dumper.py b/core/extension/make_interface_dumper.py index 87f9a71522..af35688200 100644 --- a/core/extension/make_interface_dumper.py +++ b/core/extension/make_interface_dumper.py @@ -2,8 +2,8 @@ import zlib def run(target, source, env): - src = source[0] - dst = target[0] + src = str(source[0]) + dst = str(target[0]) with open(src, "rb") as f, open(dst, "w", encoding="utf-8", newline="\n") as g: buf = f.read() decomp_size = len(buf) @@ -53,9 +53,3 @@ class GDExtensionInterfaceDump { #endif // GDEXTENSION_INTERFACE_DUMP_H """ ) - - -if __name__ == "__main__": - from platform_methods import subprocess_main - - subprocess_main(globals()) diff --git a/core/extension/make_wrappers.py b/core/extension/make_wrappers.py index e67ac8cfe7..655b90d2b1 100644 --- a/core/extension/make_wrappers.py +++ b/core/extension/make_wrappers.py @@ -142,11 +142,5 @@ def run(target, source, env): txt += "\n#endif\n" - with open(target[0], "w", encoding="utf-8", newline="\n") as f: + with open(str(target[0]), "w", encoding="utf-8", newline="\n") as f: f.write(txt) - - -if __name__ == "__main__": - from platform_methods import subprocess_main - - subprocess_main(globals()) |