mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 06:03:09 +00:00
SCons: Fix regression in Python 2 support
Introduced in 7e1312055b
by not using
the compat method.
Fixes #41858.
This commit is contained in:
parent
784e854e58
commit
217dbdc9e7
@ -3,7 +3,7 @@ import re
|
||||
import glob
|
||||
import subprocess
|
||||
from collections import OrderedDict
|
||||
from compat import iteritems, isbasestring, decode_utf8, qualname
|
||||
from compat import iteritems, isbasestring, open_utf8, decode_utf8, qualname
|
||||
|
||||
|
||||
def add_source_files(self, sources, files, warn_duplicates=True):
|
||||
@ -86,7 +86,7 @@ def update_version(module_version_string=""):
|
||||
gitfolder = module_folder[8:]
|
||||
|
||||
if os.path.isfile(os.path.join(gitfolder, "HEAD")):
|
||||
head = open(os.path.join(gitfolder, "HEAD"), "r", encoding="utf8").readline().strip()
|
||||
head = open_utf8(os.path.join(gitfolder, "HEAD"), "r").readline().strip()
|
||||
if head.startswith("ref: "):
|
||||
head = os.path.join(gitfolder, head[5:])
|
||||
if os.path.isfile(head):
|
||||
|
Loading…
Reference in New Issue
Block a user