/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to __init__.py

Merge signatures tab.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
 
111
111
 
112
112
def icon_path(*args):
113
 
    return os.path.join(data_path(), *args)
 
113
    basedirs = [os.path.join(data_path()),
 
114
             "/usr/share/bzr-gtk", 
 
115
             "/usr/local/share/bzr-gtk"]
 
116
    for basedir in basedirs:
 
117
        path = os.path.join(basedir, 'icons', *args)
 
118
        if os.path.exists(path):
 
119
            return path
 
120
    return None
114
121
 
115
122
 
116
123
class GTKCommand(Command):