summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-04-29 22:38:36 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-05-05 16:40:22 +0200
commitf26a1d8e839748ea219117ccadc2078078319fa8 (patch)
tree8c70e6d054c2eaad0029db414381f11992b472fe /SConstruct
parent5f9e74f2fb2658ae15e8bc5b17be208f39d32c3f (diff)
downloadfork-godot-webrtc-native-f26a1d8e839748ea219117ccadc2078078319fa8.tar.gz
fork-godot-webrtc-native-f26a1d8e839748ea219117ccadc2078078319fa8.tar.bz2
fork-godot-webrtc-native-f26a1d8e839748ea219117ccadc2078078319fa8.zip
Fix gdns generation with python3.
Python2 has reached end-of-life.
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()