Closed hx2A closed 1 year ago
@villares , this is now fixed. The signature for imported.run_code()
is now:
def run_code(sketch_path, *, classpath=None, new_process=False, exit_if_error=False,
py5_options=None, sketch_args=None, block=True):
The *
and the block=True
are both new.
I can't test your specific use case but it should be OK. I did test everything else (py5bot, run_sketch util, etc) and everything works as expected.
Users should be able to call
imported.run_code(sketch_code, block=False)
to change the default option in that module's_CODE_FRAMEWORK
template.