/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 setup.py

  • Committer: Martin Albisetti
  • Date: 2008-03-05 11:57:21 UTC
  • Revision ID: argentina@gmail.com-20080305115721-9sd7nc740bekngzb
Check if command exists first before updating the cache to support all platforms

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        #self.data_files.extend(self._nautilus_plugin())
41
41
        install_data.run(self)
42
42
 
43
 
        if sys.platform[:5] == 'linux':
44
 
            cmd = os.popen('gtk-update-icon-cache -f -t /usr/share/icons/hicolor')
 
43
        try:
 
44
            subprocess.check_call('gtk-update-icon-cache -f -t /usr/share/icons/hicolor')
 
45
        except:
 
46
            pass
45
47
 
46
48
    def _compile_po_files(self):
47
49
        data_files = []