1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-21 23:38:50 -05:00

Added Script.include(String path) convenience extension method / function to make including external scripts easier.

This commit is contained in:
Reinhard Pointner 2019-05-25 02:01:09 +07:00
parent 0678aa646a
commit 3ef7f62f51

View File

@ -134,6 +134,11 @@ public class ExpressionFormatFunctions {
}
return f;
}
public static Object include(Script context, Object path) throws Exception {
return context.evaluate(getUserFile(context, path));
}
private ExpressionFormatFunctions() {