SCons: Remove run_in_subprocess dependency
This commit is contained in:
@ -1,15 +1,9 @@
|
||||
"""Functions used to generate source files during build time
|
||||
|
||||
All such functions are invoked in a subprocess on Windows to prevent build flakiness.
|
||||
|
||||
"""
|
||||
|
||||
from platform_methods import subprocess_main
|
||||
"""Functions used to generate source files during build time"""
|
||||
|
||||
|
||||
def make_splash(target, source, env):
|
||||
src = source[0]
|
||||
dst = target[0]
|
||||
src = str(source[0])
|
||||
dst = str(target[0])
|
||||
|
||||
with open(src, "rb") as f:
|
||||
buf = f.read()
|
||||
@ -28,8 +22,8 @@ def make_splash(target, source, env):
|
||||
|
||||
|
||||
def make_splash_editor(target, source, env):
|
||||
src = source[0]
|
||||
dst = target[0]
|
||||
src = str(source[0])
|
||||
dst = str(target[0])
|
||||
|
||||
with open(src, "rb") as f:
|
||||
buf = f.read()
|
||||
@ -49,8 +43,8 @@ def make_splash_editor(target, source, env):
|
||||
|
||||
|
||||
def make_app_icon(target, source, env):
|
||||
src = source[0]
|
||||
dst = target[0]
|
||||
src = str(source[0])
|
||||
dst = str(target[0])
|
||||
|
||||
with open(src, "rb") as f:
|
||||
buf = f.read()
|
||||
@ -64,7 +58,3 @@ def make_app_icon(target, source, env):
|
||||
g.write(str(buf[i]) + ",\n")
|
||||
g.write("};\n")
|
||||
g.write("#endif")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
subprocess_main(globals())
|
||||
|
||||
Reference in New Issue
Block a user