setPackage

fun setPackage(name: String)

Sets the package of the future scripts to name.

Note that the Kotlin script engine implementation might prohibit from changing the package. As a result, subsequent calls of this method might have no effect. To execute scripts from within multiple packages, create multiple script engines.