Merge pull request #28 from Faless/fix/python3

Fix gdns generation with python3.
This commit is contained in:
Fabio Alessandrelli
2021-05-05 16:42:21 +02:00
committed by GitHub

View File

@@ -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()