mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
Fix #217
This commit is contained in:
parent
7fb1d301b7
commit
b0c35ff3dc
@ -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 @@ if __name__ == '__main__':
|
||||
sys.exit(0)
|
||||
|
||||
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