self.root not guaranteed to be set

Bug #1587186 reported by Nathan Osman
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Unity Tweak Tool
Confirmed
Undecided
Unassigned

Bug Description

In setup.py:160, the following line references "self.root":

    desktop_file = move_desktop_open(self.root, target_data, self.prefix)

However, the base class for the install command, "distutils.command.install.install", doesn't always set "self.root". In fact, the default value is "None". This leads to an exception during installation if "self.root" is not set:

      File "setup.py", line 98, in move_desktop_open
        old_desktop_path = os.path.normpath(root + target_data +
    TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Revision history for this message
Seth Johnson (sethj) wrote :

I'm afraid this is going to take quite a bit of time to refactor, time I won't have until at least August.

Changed in unity-tweak-tool:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.