mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Fix #217
This commit is contained in:
parent
7fb1d301b7
commit
b0c35ff3dc
1 changed files with 10 additions and 4 deletions
|
|
@ -1797,9 +1797,7 @@ def parse_options() :
|
|||
'extensions' : options.extensions,
|
||||
'encoding' : options.encoding }
|
||||
|
||||
if __name__ == '__main__':
|
||||
""" Run Markdown from the command line. """
|
||||
|
||||
def main():
|
||||
options = parse_options()
|
||||
|
||||
#if os.access(inFile, os.R_OK):
|
||||
|
|
@ -1808,7 +1806,15 @@ def parse_options() :
|
|||
sys.exit(0)
|
||||
|
||||
markdownFromFile(**options)
|
||||
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
""" Run Markdown from the command line. """
|
||||
sys.exit(main())
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue