@@ -873,7 +873,8 @@ private static void generateLaunchers(Launcher launcherArgs, BuildToolLog log) t
873873 String classpath = String .join (File .pathSeparator , launcherArgs .computeClassPath ());
874874 String extraJavaOptions = String .join (" " , GraalPyRunner .getExtraJavaOptions ());
875875 if (IS_MAC || IS_WINDOWS ) {
876- if (Files .exists (launcherArgs .launcherPath ) && checkPyVenvCfgFile (launcherArgs .launcherPath .getParent ().resolve ("pyvenv.cfg" ), java )) {
876+ if (Files .exists (launcherArgs .launcherPath )
877+ && checkPyVenvCfgFile (launcherArgs .launcherPath .getParent ().resolve ("pyvenv.cfg" ), java )) {
877878 return ;
878879 }
879880 var launcherFolder = IS_WINDOWS ? "nt" : "macos" ;
@@ -890,7 +891,8 @@ private static void generateLaunchers(Launcher launcherArgs, BuildToolLog log) t
890891 with open(pyvenvcfg, 'w', encoding='utf-8') as f:
891892 f.write('venvlauncher_command = ')
892893 f.write(cmd)
893- """ , launcherFolder , launcherName , launcherArgs .launcherPath , java , extraJavaOptions , classpath , GRAALPY_MAIN_CLASS );
894+ """ , launcherFolder , launcherName , launcherArgs .launcherPath , java , extraJavaOptions , classpath ,
895+ GRAALPY_MAIN_CLASS );
894896 File tmp ;
895897 try {
896898 tmp = File .createTempFile ("create_launcher" , ".py" );
@@ -909,8 +911,7 @@ with open(pyvenvcfg, 'w', encoding='utf-8') as f:
909911 } catch (InterruptedException e ) {
910912 throw new IOException ("failed to run Graalpy launcher" , e );
911913 }
912- }
913- else {
914+ } else {
914915 // we do not bother checking if it exists and has correct java home, since it is
915916 // simple
916917 // to regenerate the launcher
0 commit comments