Skip to content

Commit 1b24549

Browse files
committed
Fix style
1 parent dde69eb commit 1b24549

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

SConstruct

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ if env["gdnative_include_dir"]:
121121
if env["gdnative_wrapper_lib"]:
122122
env["gdnative_wrapper_lib"] = File(env["gdnative_wrapper_lib"])
123123

124-
env["build_name"] = '%s-%s' % (env['platform'], env["backend"])
124+
env["build_name"] = "%s-%s" % (env["platform"], env["backend"])
125125
env["build_dir"] = Dir("#build/%s" % env["build_name"])
126126

127127

@@ -240,9 +240,13 @@ def extract_version():
240240

241241
def generate_build_dir_hook(path):
242242
with open("misc/single_build_pythonscript.gdnlib") as fd:
243-
gdnlib = fd.read().replace(env['build_name'], '')
243+
gdnlib = fd.read().replace(env["build_name"], "")
244244
# Single platform vs multi-platform one have not the same layout
245-
gdnlib = re.sub(r'(res://pythonscript/)(x11|windows|osx)-(64|32)-(cpython|pypy)/', r'\1', gdnlib)
245+
gdnlib = re.sub(
246+
r"(res://pythonscript/)(x11|windows|osx)-(64|32)-(cpython|pypy)/",
247+
r"\1",
248+
gdnlib,
249+
)
246250
with open(os.path.join(path, "pythonscript.gdnlib"), "w") as fd:
247251
fd.write(gdnlib)
248252

@@ -346,9 +350,7 @@ env.AlwaysBuild("example")
346350

347351
def generate_release(target, source, env):
348352
base_name, format = target[0].abspath.rsplit(".", 1)
349-
shutil.make_archive(
350-
base_name, format, root_dir=source[0].abspath
351-
)
353+
shutil.make_archive(base_name, format, root_dir=source[0].abspath)
352354

353355

354356
release = env.Command(

tools/multi_platform_release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def orchestrator(targets, version, src, dst, buildzip):
8080
readme = fd.read().format(
8181
version=version, date=datetime.utcnow().strftime("%Y-%m-%d")
8282
)
83-
with open("%s/README.txt" % dst, 'w') as fd:
83+
with open("%s/README.txt" % dst, "w") as fd:
8484
fd.write(readme)
8585

8686
if buildzip:

0 commit comments

Comments
 (0)