summaryrefslogtreecommitdiffstats
path: root/src/pyloader.c
diff options
context:
space:
mode:
authorChristopher Davis <loafier@gmail.com>2006-08-14 04:45:46 +0000
committerChristopher Davis <loafier@gmail.com>2006-08-14 04:45:46 +0000
commitce3d6fcba4587feb5555a9b85c6fdeaa0b74553f (patch)
tree73de668e3b48b475ae1fac6a8317f577ec2c0663 /src/pyloader.c
parent3a028090359e5d5d24ccbfc11d9b6ff5681aab4f (diff)
downloadirssi-python-ce3d6fcba4587feb5555a9b85c6fdeaa0b74553f.tar.gz
irssi-python-ce3d6fcba4587feb5555a9b85c6fdeaa0b74553f.tar.xz
irssi-python-ce3d6fcba4587feb5555a9b85c6fdeaa0b74553f.zip
adding autotool stuff
git-svn-id: http://svn.irssi.org/repos/irssi-python@4313 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/pyloader.c')
-rw-r--r--src/pyloader.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pyloader.c b/src/pyloader.c
index a087827..9c878a4 100644
--- a/src/pyloader.c
+++ b/src/pyloader.c
@@ -321,11 +321,14 @@ int pyloader_init(void)
return 0;
/* XXX: load autorun scripts here */
- /* Add script location to the load path (add more paths later) */
+ /* Add script location to the load path */
pyhome = g_strdup_printf("%s/scripts", get_irssi_dir());
pyloader_add_script_path(pyhome);
g_free(pyhome);
-
+
+ /* typically /usr/local/share/irssi/scripts */
+ pyloader_add_script_path(SCRIPTDIR);
+
return 1;
}