File: markdown2

package info (click to toggle)
python-markdown2 2.3.7-2%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,952 kB
  • sloc: python: 2,790; makefile: 35
file content (18 lines) | stat: -rwxr-xr-x 479 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python

import sys
from os.path import join, dirname, exists

# Use the local markdown2.py if we are in the source tree.
source_tree_markdown2 = join(dirname(__file__), "..", "lib", "markdown2.py")
if exists(source_tree_markdown2):
    sys.path.insert(0, dirname(source_tree_markdown2))
    try:
        from markdown2 import main
    finally:
        del sys.path[0]
else:
    from markdown2 import main

if __name__ == "__main__":
    sys.exit( main(sys.argv) )