diff options
Diffstat (limited to 'src/lua-script/script.h')
-rw-r--r-- | src/lua-script/script.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lua-script/script.h b/src/lua-script/script.h index 1ba2e4b..cf64d22 100644 --- a/src/lua-script/script.h +++ b/src/lua-script/script.h @@ -250,6 +250,12 @@ const char *argent_script = " argent.log('info', 'noprocess: '..set_tostring(argent.config.noprocess))\n" " argent.log('info', 'rss files: '..set_tostring(argent.config.rss_include))\n" "\n" + " if argent.config.plugin_directory then\n" + " package.path =\n" + " add_end_slash(argent.currentWorkingDirectory())\n" + " ..argent.config.plugin_directory..'?.lua;'..package.path\n" + " end\n" + "\n" " if argent.config.layout_directory then\n" " argent.layouts = load_layouts()\n" " else\n" @@ -257,12 +263,6 @@ const char *argent_script = " end\n" " argent.log('info', fmt('available layouts: %s', set_tostring(argent.layouts)))\n" " \n" - " if argent.config.plugin_directory then\n" - " package.path =\n" - " add_end_slash(argent.currentWorkingDirectory())\n" - " ..argent.config.plugin_directory..'?.lua;'..package.path\n" - " end\n" - "\n" " if argent.config.rss_include then\n" " if not argent.config.site_address then\n" " error('rss_include is set, but site_address is not!')\n" |