forked from PADrend/Plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.escript
34 lines (27 loc) · 1.23 KB
/
main.escript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* This file is part of the open source part of the
* Platform for Algorithm Development and Rendering (PADrend).
* Web page: http://www.padrend.de/
* Copyright (C) 2008-2012 Benjamin Eikel <[email protected]>
* Copyright (C) 2007-2012 Claudius Jähn <[email protected]>
* Copyright (C) 2011 Lukas Kopecki
* Copyright (C) 2009 Ralf Petring <[email protected]>
*
* PADrend consists of an open source part and a proprietary part.
* The open source part of PADrend is subject to the terms of the Mozilla
* Public License, v. 2.0. You should have received a copy of the MPL along
* with this library; see the file LICENSE. If not, you can obtain one at
* http://mozilla.org/MPL/2.0/.
*/
GLOBALS._processResult := true;
Runtime.enableLogCounting();
addSearchPath(__DIR__); // add "plugins/" to the search path for load and loadOnce.
load("LibEStd/init.escript");
Std.addModuleSearchPath(__DIR__); // add "plugins/" to the search path for Std.require
systemConfig.init(mainConfig);
setConfigInfo('System.mainScript',"Main script file (default: PADrend/PADrend.escript)");
load (systemConfig.getValue('System.mainScript',"PADrend/PADrend.escript"));
if(_processResult---|>Exception)
throw _processResult;
else
exit(_processResult);