aboutsummaryrefslogtreecommitdiffstats
path: root/bin/markdown_py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-08-03 15:09:38 -0400
committerWaylan Limberg <waylan@gmail.com>2011-08-03 15:09:38 -0400
commit0f63660653d5bb2b90354ad4b9a34a226718ce5f (patch)
treeedca4502839286029998ab92bd1a07ecd1eeebb6 /bin/markdown_py
parent8606441ed7b854ba05b6ca4236512f1146a898a3 (diff)
downloadmarkdown-0f63660653d5bb2b90354ad4b9a34a226718ce5f.tar.gz
markdown-0f63660653d5bb2b90354ad4b9a34a226718ce5f.tar.bz2
markdown-0f63660653d5bb2b90354ad4b9a34a226718ce5f.zip
Added support for python's '-m' command line option. Do 'python -m markdown [options] [args]'. I suspect will drop the command line script (markdown_py) when we drop support for Python 2.4 as this is easier to support.
Diffstat (limited to 'bin/markdown_py')
-rwxr-xr-xbin/markdown_py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/markdown_py b/bin/markdown_py
index 111b2c1..220c666 100755
--- a/bin/markdown_py
+++ b/bin/markdown_py
@@ -29,7 +29,6 @@ Copyright 2004 Manfred Stienstra (the original version)
License: BSD (see docs/LICENSE for details).
"""
-from markdown import commandline
-
if __name__ == '__main__':
- commandline.run()
+ from markdown.__main__ import run
+ run()