~flimm/epidermis/icon-theme-bugfix

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python2.6
# Copyright 2008,2010-2011 David D Lowe
# released under the gpl v3

from __future__ import absolute_import
import gobject
gobject.threads_init()

if __name__ == "__main__":
    import sys
    if '--creator' in sys.argv[1:]:
        import epidermis.creator
        epidermis.creator.main()
    else:
        import epidermis.epidermis
        epidermis.epidermis.main()

else:
    import sys
    print >> sys.stderr, "epidermis runner module is meant to be run, not imported"
    class DoNotImport(Exception):
        def __str__(self): return "Do Not Import"
    raise(DoNotImport())