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

@ -65,6 +65,13 @@ from gen.plug import PluginManager
from QuestionDialog import OkDialog, MissingMediaDialog
from BasicUtils import name_displayer as _nd
#-------------------------------------------------------------------------
#
# Constants
#
#-------------------------------------------------------------------------
_GLADE_FILE = "summary.glade"
#-------------------------------------------------------------------------
#
# Low Level repair
@ -1621,8 +1628,10 @@ class Report(ManagedWindow.ManagedWindow):
ManagedWindow.ManagedWindow.__init__(self, uistate, [], self)
base = os.path.dirname(__file__)
glade_file = base + os.sep + "summary.glade"
glade_file = os.path.join(
os.path.split(__file__)[0],
_GLADE_FILE)
topDialog = gtk.Builder()
topDialog.add_from_file(glade_file)
topDialog.get_object("close").connect('clicked',self.close)