setupInterpreterEnvironment

fun setupInterpreterEnvironment(engine: String): FileHandle

Set up a directory tree with all known libraries and files for a scripting engine/language type.

Creates temporary directory. Copies directory tree under android/assets/scripting/sharedfiles/ into it, as specified in ScriptingEngineConstants.json Copies directory tree under android/assets/scripting/enginefiles/{engine} into it, as specified in ScriptingEngineConstants.json.

Return

FileHandle() for the temporary directory.

Parameters

engine

Name of the engine type, as defined in scripting constants.

Sources

jvm source
Link copied to clipboard