2 import findrox
; findrox
.version(1,9,7)
6 if not os
.environ
.get('XDG_DATA_DIRS', ''):
7 # Try to get MIME database through Zero Install, if possible
8 os
.system('0refresh zero-install.sourceforge.net/share/mime 2003-08-07')
9 if os
.path
.isdir('/uri/0install/zero-install.sourceforge.net'):
10 os
.environ
['XDG_DATA_DIRS'] = '/usr/local/share/:/usr/share/:/uri/0install/zero-install.sourceforge.net/share'
18 rox
.croak('Need ROX-Lib 1.9.7 or later:\n'
19 'http://rox.sourceforge.net/rox_lib.html')