From c2f9188ec058c524c40f0da98399bffeebe8c46e Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Fri, 24 Feb 2012 07:50:58 +1300 Subject: [PATCH] Fixed the namegen plugin --- plugins/util/molecular.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/util/molecular.py b/plugins/util/molecular.py index 4c4e111..ed5f4e7 100644 --- a/plugins/util/molecular.py +++ b/plugins/util/molecular.py @@ -72,9 +72,9 @@ As a module (to be imported) you get the following classes and functions: __version__ = "1.0" -import string, re, sys, random +import string, re, sys, random, os -NAMEDIR = "/home/ircbot/bot/plugins/util/names" +NAMEDIR = os.path.dirname(__file__) + "/namefiles" NAMESECTIONS = [ "inf", "first", "mid", "final", "notes", "end" ] class NameFile: