summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-05-05 16:42:21 +0200
committerGitHub <noreply@github.com>2021-05-05 16:42:21 +0200
commit9ee98ff0e9a6590d00fd43718937acb5f58a43f5 (patch)
treee079192f9b0effe15778453541d4e4f428434b7d /SConstruct
parent74f2c78db5cdffa5b2b6ba9cd041061d7694400c (diff)
parentf26a1d8e839748ea219117ccadc2078078319fa8 (diff)
downloadfork-godot-webrtc-native-9ee98ff0e9a6590d00fd43718937acb5f58a43f5.tar.gz
fork-godot-webrtc-native-9ee98ff0e9a6590d00fd43718937acb5f58a43f5.tar.bz2
fork-godot-webrtc-native-9ee98ff0e9a6590d00fd43718937acb5f58a43f5.zip
Merge pull request #28 from Faless/fix/python3
Fix gdns generation with python3.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 6819640..99427c7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -12,7 +12,7 @@ def add_sources(sources, dirpath, extension):
def gen_gdnative_lib(target, source, env):
for t in target:
with open(t.srcnode().path, 'w') as w:
- w.write(source[0].get_contents().replace('{GDNATIVE_PATH}', os.path.splitext(t.name)[0]).replace('{TARGET}', env['target']))
+ w.write(source[0].get_contents().decode('utf8').replace('{GDNATIVE_PATH}', os.path.splitext(t.name)[0]).replace('{TARGET}', env['target']))
env = Environment()