diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-08-03 15:09:38 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2011-08-03 15:09:38 -0400 |
commit | 0f63660653d5bb2b90354ad4b9a34a226718ce5f (patch) | |
tree | edca4502839286029998ab92bd1a07ecd1eeebb6 /bin/markdown_py | |
parent | 8606441ed7b854ba05b6ca4236512f1146a898a3 (diff) | |
download | markdown-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-x | bin/markdown_py | 5 |
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() |