diff options
author | James Abbatiello <abbeyj@gmail.com> | 2009-08-04 14:36:49 -0400 |
---|---|---|
committer | James Abbatiello <abbeyj@gmail.com> | 2009-08-04 14:36:49 -0400 |
commit | e658b4ba82c5c07d40d2a5e394f42ecdac82b8fb (patch) | |
tree | a765c292c9cb4318b302f5c8f68db4fcf97efea4 /cheetah | |
parent | 53144fffd7754476b8b866b7b52fa9faab1548e4 (diff) | |
download | python-cheetah-e658b4ba82c5c07d40d2a5e394f42ecdac82b8fb.tar.gz |
Have setuptools generate .exe wrappers for scripts on Windows
Diffstat (limited to 'cheetah')
-rw-r--r-- | cheetah/CheetahWrapper.py | 10 |
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() |