add ability to include scripts from a relative path in assignment-client (for persistent scripts only)

This commit is contained in:
Thijs Wenker 2015-08-22 01:30:07 +02:00
parent 176d7372ad
commit f512205f6f

View file

@ -181,6 +181,10 @@ void Agent::run() {
// register ourselves to the script engine
_scriptEngine.registerGlobalObject("Agent", this);
if (!_payload.isEmpty()) {
_scriptEngine.setParentURL(_payload);
}
_scriptEngine.init(); // must be done before we set up the viewers
_scriptEngine.registerGlobalObject("SoundCache", DependencyManager::get<SoundCache>().data());