Skip to content

Commit 32402dc

Browse files
committed
get fx2d working for run-sketch
1 parent ff92a7a commit 32402dc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

py5_resources/py5_module/py5_tools/imported.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ def _run_sketch(sketch_path, classpath, exit_if_error):
223223
jvm.add_jars(sketch_path.parent / "jars")
224224

225225
set_imported_mode(True)
226+
try:
227+
import py5javafx
228+
except ImportError:
229+
pass
226230
import py5
227231

228232
if py5.is_running() if callable(py5.is_running) else py5.is_running:

0 commit comments

Comments
 (0)