1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/usr/bin/env python2.6
# Copyright 2008,2010 David D Lowe
# released under the gpl v3
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
import subprocess
import os,sys
path = os.path.join(os.path.dirname(epidermis.__file__), "epidermis.py")
subprocess.call([sys.executable, path] + sys.argv[1:])
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())
|