diff OrthancServer/ServerContext.cpp @ 394:9784f19f7e1b lua-scripting

path relative to configuration path, list of lua scripts
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 02 May 2013 11:02:15 +0200
parents 2cef9c2d4148
children 941ea46e9e26
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp	Tue Apr 30 15:41:07 2013 +0200
+++ b/OrthancServer/ServerContext.cpp	Thu May 02 11:02:15 2013 +0200
@@ -35,6 +35,7 @@
 #include "../Core/HttpServer/FilesystemHttpSender.h"
 
 #include <glog/logging.h>
+#include <EmbeddedResources.h>
 
 #define ENABLE_DICOM_CACHE  1
 
@@ -60,6 +61,7 @@
     provider_(*this),
     dicomCache_(provider_, DICOM_CACHE_SIZE)
   {
+    lua_.Execute(Orthanc::EmbeddedResources::LUA_TOOLBOX);
   }
 
   void ServerContext::SetCompressionEnabled(bool enabled)