@@ -121,7 +121,7 @@ if env["gdnative_include_dir"]:
121
121
if env ["gdnative_wrapper_lib" ]:
122
122
env ["gdnative_wrapper_lib" ] = File (env ["gdnative_wrapper_lib" ])
123
123
124
- env ["build_name" ] = ' %s-%s' % (env [' platform' ], env ["backend" ])
124
+ env ["build_name" ] = " %s-%s" % (env [" platform" ], env ["backend" ])
125
125
env ["build_dir" ] = Dir ("#build/%s" % env ["build_name" ])
126
126
127
127
@@ -240,9 +240,13 @@ def extract_version():
240
240
241
241
def generate_build_dir_hook (path ):
242
242
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" ], "" )
244
244
# 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
+ )
246
250
with open (os .path .join (path , "pythonscript.gdnlib" ), "w" ) as fd :
247
251
fd .write (gdnlib )
248
252
@@ -346,9 +350,7 @@ env.AlwaysBuild("example")
346
350
347
351
def generate_release (target , source , env ):
348
352
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 )
352
354
353
355
354
356
release = env .Command (
0 commit comments