plugins/tools: make file path build logic conform to Python standards

svn: r12450
This commit is contained in:
Gerald Britton
2009-04-15 19:27:17 +00:00
parent 1c7daa4ed5
commit 82aac3836f
11 changed files with 99 additions and 33 deletions

View File

@@ -58,6 +58,8 @@ from gen.plug import PluginManager
#-------------------------------------------------------------------------
WIKI_HELP_PAGE = '%s_-_Tools' % const.URL_MANUAL_PAGE
WIKI_HELP_SEC = _('manual|Generate_SoundEx_codes')
_GLADE_FILE = "soundex.glade"
#-------------------------------------------------------------------------
#
# SoundGen.py
@@ -71,8 +73,9 @@ class SoundGen(Tool.Tool, ManagedWindow.ManagedWindow):
Tool.Tool.__init__(self, dbstate, options_class, name)
ManagedWindow.ManagedWindow.__init__(self,uistate,[],self.__class__)
base = os.path.dirname(__file__)
glade_file = base + os.sep + "soundex.glade"
glade_file = os.path.join(
os.path.split(__file__)[0],
_GLADE_FILE)
self.glade = gtk.Builder()
self.glade.add_from_file(glade_file)