mirror of
https://github.com/godotengine/webrtc-native.git
synced 2026-01-01 05:48:15 +03:00
Fix gdns generation with python3.
Python2 has reached end-of-life.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user