From 0f63660653d5bb2b90354ad4b9a34a226718ce5f Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 3 Aug 2011 15:09:38 -0400 Subject: 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. --- bin/markdown_py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin') 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() -- cgit v1.2.3