summaryrefslogtreecommitdiff
path: root/enemies-of-carlotta
diff options
context:
space:
mode:
Diffstat (limited to 'enemies-of-carlotta')
-rw-r--r--enemies-of-carlotta16
1 files changed, 16 insertions, 0 deletions
diff --git a/enemies-of-carlotta b/enemies-of-carlotta
new file mode 100644
index 0000000..4852c46
--- /dev/null
+++ b/enemies-of-carlotta
@@ -0,0 +1,16 @@
+#!/usr/bin/python
+#
+# This file works as the Enemies of Carlotta startup wrapper. The real
+# program is in eoc.py, stored in SHAREDIR (see below). It is large enough
+# that the time Python takes to parse and compile it to bytecode is
+# significant, therefore we use a very short wrapper (this file) and
+# install eoc.py in a way that allows it to be compiled, thus reducing
+# startup time.
+
+SHAREDIR="."
+
+import sys
+sys.path.insert(0, SHAREDIR)
+
+import eoc
+eoc.main(sys.argv[1:])