From f26a1d8e839748ea219117ccadc2078078319fa8 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Thu, 29 Apr 2021 22:38:36 +0200 Subject: Fix gdns generation with python3. Python2 has reached end-of-life. --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SConstruct') 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() -- cgit v1.2.3