Skip to content

Commit 88d4afe

Browse files
committed
Check that the processing-py.jar exists and is readable
1 parent a719986 commit 88d4afe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎generator.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ def generate_images(items_dict, to_update, src_dir, processing_py_jar,
223223
base_cmd = [javabin, "-cp", processing_py_jar, "org.python.util.jython",
224224
generate_img_script, '--todo']
225225

226+
# Check that the processing-py.jar exists and is readable
227+
processing_py_jar_path = os.path.join(src_dir, 'processing-py.jar')
228+
print("Checking processing-py.jar at:", processing_py_jar_path)
229+
print("Exists:", os.path.exists(processing_py_jar_path))
230+
print("Permissions:", oct(os.stat(processing_py_jar_path).st_mode)[-3:])
231+
226232
# TODO: use the multiprocessing module's Pool class to run multiple
227233
# instances of this at once
228234
generated, failed = image_worker(base_cmd, workitems)

0 commit comments

Comments
 (0)