@@ -121,7 +121,7 @@ if env["gdnative_include_dir"]:
121121if 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" ])
125125env ["build_dir" ] = Dir ("#build/%s" % env ["build_name" ])
126126
127127
@@ -240,9 +240,13 @@ def extract_version():
240240
241241def 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
347351def 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
354356release = env .Command (
0 commit comments