Hi,
Whenever I try to load a lua script, I Get the following error :
E1018 10:25:10.331030 OrthancException.cpp:57] The specified path does not point to a regular file: The path does not point to a regular file: C:\Program Files\Orthanc Server\Lua\routing.lua
I tried various file locations and names without any luck.
Ortanc server 1.9.7 on windows.
Can you show your config? Make sure to add additional \ when referencing file locations in the config.
I’ll go with a simple path :
// List of paths to the custom Lua scripts that are to be loaded
// into this instance of Orthanc
“LuaScripts” : [ ],
Starts the server normally, but :
“LuaScripts” : [ “C:\test.lua” ],
Fails with :
E1019 08:31:48.615230 OrthancException.cpp:57] The specified path does not point to a regular file: The path does not point to a regular file: C:\test.lua
Hi Thibaut,
From your screen capture, it looks like your Windows explorer is hiding file extensions and that, therefore, the real name of your file is C:\test.lua.txt.
On my side, I’ve just tested with C:\test.lua and it works.
HTH
Alain.
Oh yes you are right !
I feel stupid now, I wasn’t opening the file with a proper code editor, didn’t notice the extra extension.
Thank you very much.