dogtail-devel [Bug 353719] New: recorder has path to glade and icons file paths hardcoded in script



Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=353719
 dogtail | Recorder | Ver: CVS HEAD

           Summary: recorder has path to glade and icons file paths
                    hardcoded in script
           Product: dogtail
           Version: CVS HEAD
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: Recorder
        AssignedTo: dogtail-maint gnome bugs
        ReportedBy: timlee novell com
         QAContact: dogtail-maint gnome bugs
     GNOME version: 2.11/2.12
   GNOME milestone: Unspecified


In the recorder script has the path to the glade and icon files hard coded in
the script. For example:

x = gtk.glade.XML('/usr/share/dogtail/glade/recorder.glade')

Which causes problems if you install to a different prefix.

So I worked around this by adding code like this (admittedly not very elegant):

        exec_root = sys.argv[0].split("/bin/")[0]
        if exec_root[0] is not '/':
            exec_root = "/usr"

        try:
            x = gtk.glade.XML('recorder.glade')
        except RuntimeError:
            x = gtk.glade.XML(exec_root +
'/share/dogtail/glade/recorder.glade')


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the QA contact for the bug.
You are watching the assignee for the bug.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]