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:
parent
0678aa646a
commit
3ef7f62f51
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user