zk4 / epub2html

Fast epub reader with simple idea

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

help with automater

laniidae opened this issue · comments

automater
source ~/.bash_profile
/Library/Frameworks/Python.framework/Versions/3.9/bin/epub2html "$1"

error
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/epub2html", line 8, in
sys.exit(entry_point())
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/epub2html/epub2html.py", line 228, in entry_point
main(mainArgs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/epub2html/epub2html.py", line 206, in main
if filepath[0]!="." and filepath[0]!="/":
IndexError: string index out of range

/Library/Frameworks/Python.framework/Versions/3.9/bin/epub2html xx.epub
works for me in bash

commented

It seems $1 did not get any filepath.