summaryrefslogtreecommitdiff
path: root/cheetah/CheetahWrapper.py
diff options
context:
space:
mode:
authorJames Abbatiello <abbeyj@gmail.com>2009-08-04 14:36:49 -0400
committerJames Abbatiello <abbeyj@gmail.com>2009-08-04 14:36:49 -0400
commite658b4ba82c5c07d40d2a5e394f42ecdac82b8fb (patch)
treea765c292c9cb4318b302f5c8f68db4fcf97efea4 /cheetah/CheetahWrapper.py
parent53144fffd7754476b8b866b7b52fa9faab1548e4 (diff)
downloadpython-cheetah-e658b4ba82c5c07d40d2a5e394f42ecdac82b8fb.tar.gz
Have setuptools generate .exe wrappers for scripts on Windows
Diffstat (limited to 'cheetah/CheetahWrapper.py')
-rw-r--r--cheetah/CheetahWrapper.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/cheetah/CheetahWrapper.py b/cheetah/CheetahWrapper.py
index 96f57d5..9af8f1e 100644
--- a/cheetah/CheetahWrapper.py
+++ b/cheetah/CheetahWrapper.py
@@ -614,6 +614,16 @@ be named according to the same rules as Python modules.""" % tup)
f.close()
+# Called when invoked as `cheetah`
+def _cheetah():
+ CheetahWrapper().main()
+
+# Called when invoked as `cheetah-compile`
+def _cheetah_compile():
+ sys.argv.insert(1, "compile")
+ CheetahWrapper().main()
+
+
##################################################
## if run from the command line
if __name__ == '__main__': CheetahWrapper().main()