@@ -919,7 +919,8 @@ private static void generateLaunchers(Launcher launcherArgs, BuildToolLog log) t
919919 String classpath = String .join (File .pathSeparator , launcherArgs .computeClassPath ());
920920 String extraJavaOptions = String .join (" " , GraalPyRunner .getExtraJavaOptions ());
921921 if (IS_MAC || IS_WINDOWS ) {
922- if (Files .exists (launcherArgs .launcherPath ) && checkPyVenvCfgFile (launcherArgs .launcherPath .getParent ().resolve ("pyvenv.cfg" ), java )) {
922+ if (Files .exists (launcherArgs .launcherPath )
923+ && checkPyVenvCfgFile (launcherArgs .launcherPath .getParent ().resolve ("pyvenv.cfg" ), java )) {
923924 return ;
924925 }
925926 var launcherFolder = IS_WINDOWS ? "nt" : "macos" ;
@@ -936,7 +937,8 @@ private static void generateLaunchers(Launcher launcherArgs, BuildToolLog log) t
936937 with open(pyvenvcfg, 'w', encoding='utf-8') as f:
937938 f.write('venvlauncher_command = ')
938939 f.write(cmd)
939- """ , launcherFolder , launcherName , launcherArgs .launcherPath , java , extraJavaOptions , classpath , GRAALPY_MAIN_CLASS );
940+ """ , launcherFolder , launcherName , launcherArgs .launcherPath , java , extraJavaOptions , classpath ,
941+ GRAALPY_MAIN_CLASS );
940942 File tmp ;
941943 try {
942944 tmp = File .createTempFile ("create_launcher" , ".py" );
@@ -955,8 +957,7 @@ with open(pyvenvcfg, 'w', encoding='utf-8') as f:
955957 } catch (InterruptedException e ) {
956958 throw new IOException ("failed to run Graalpy launcher" , e );
957959 }
958- }
959- else {
960+ } else {
960961 // we do not bother checking if it exists and has correct java home, since it is
961962 // simple
962963 // to regenerate the launcher
0 commit comments