mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-11-18 12:33:03 -05:00
Fix #217
This commit is contained in:
parent
7fb1d301b7
commit
b0c35ff3dc
@ -1797,9 +1797,7 @@ def parse_options() :
|
|||||||
'extensions' : options.extensions,
|
'extensions' : options.extensions,
|
||||||
'encoding' : options.encoding }
|
'encoding' : options.encoding }
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def main():
|
||||||
""" Run Markdown from the command line. """
|
|
||||||
|
|
||||||
options = parse_options()
|
options = parse_options()
|
||||||
|
|
||||||
#if os.access(inFile, os.R_OK):
|
#if os.access(inFile, os.R_OK):
|
||||||
@ -1809,6 +1807,14 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
markdownFromFile(**options)
|
markdownFromFile(**options)
|
||||||
|
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
""" Run Markdown from the command line. """
|
||||||
|
sys.exit(main())
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user