fixes base.lua path.
authorPeng Wu <alexepico@gmail.com>
Mon, 21 Jun 2010 05:34:12 +0000 (13:34 +0800)
committerPeng Wu <alexepico@gmail.com>
Mon, 21 Jun 2010 05:34:12 +0000 (13:34 +0800)
lua/Makefile.am
src/ExtEditor.cc

index 7ac6fda..914f4c5 100644 (file)
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
+lua_script_DATA = base.lua \
+        $(NULL)
+
+lua_scriptdir = $(pkgdatadir)
+
 noinst_LTLIBRARIES = \
        libpylua.la \
        $(NULL)
index cc62811..2e6fef7 100644 (file)
@@ -46,7 +46,7 @@ ExtEditor::ExtEditor (PinyinProperties & props, Config & config)
 {
     m_lua_plugin = ibus_engine_plugin_new();
 
-    loadLuaScript("../lua/base.lua");
+    loadLuaScript(PKGDATADIR "/base.lua");
 
     m_text = "";
     m_cursor = 0;