RocMarshal commented on code in PR #26238:
URL: https://github.com/apache/flink/pull/26238#discussion_r1990456818


##########
flink-clients/src/main/java/org/apache/flink/client/program/PackagedProgram.java:
##########
@@ -246,7 +246,18 @@ public ClassLoader getUserCodeClassLoader() {
 
     /** Returns all provided libraries needed to run the program. */
     public List<URL> getJobJarAndDependencies() {
-        List<URL> libs = new ArrayList<URL>(extractedTempLibraries.size() + 1);
+        List<URL> libs = getJobJarAndDependencies(jarFile, 
extractedTempLibraries);
+
+        if (isPython) {
+            libs.add(PackagedProgramUtils.getPythonJar());
+        }
+
+        return libs;
+    }
+
+    private static List<URL> getJobJarAndDependencies(
+            URL jarFile, List<File> extractedTempLibraries) {
+        List<URL> libs = new ArrayList<>(extractedTempLibraries.size() + 1);

Review Comment:
   Thanks @davidradl for the comments, That sounds good to me.
   I updated it. PTAL :) 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to