From 46f235f7438f42ffcc2e742c068fa3da7258310b Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 1 Mar 2010 12:42:25 +0000 Subject: [PATCH] Allow to use dofile in lua scripts : we now chdir to the script folder before running the script, so it will easily find other scripts. If you want to run scripts located elsewhere, use relative or absolute path. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1367 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- factory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/factory.c b/factory.c index 5397b1bc..bf541d01 100644 --- a/factory.c +++ b/factory.c @@ -959,6 +959,7 @@ void Button_Brush_Factory(void) Display_cursor(); Flush_update(); + chdir(scriptdir); L = lua_open();