Skip to content

Commit

Permalink
Version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
quantrancse committed Dec 7, 2021
1 parent 00c96ff commit a61158c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions epub-translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,14 @@ def start(self, file_path):

if args.dict:
translation_dict_file_path = args.dict.replace(
'&', '').replace('\'', '').strip()
'&', '').replace('\'', '').replace('\"', '').strip()
engine.translation_dict_file_path = os.path.abspath(
translation_dict_file_path)
if not engine.get_translation_dict_contents():
sys.exit()

epub_file_path = args.epub_file_path.replace(
'&', '').replace('\'', '').strip()
'&', '').replace('\'', '').replace('\"', '').strip()
epub_abs_file_path = os.path.abspath(epub_file_path)
if os.path.isfile(epub_abs_file_path) and epub_abs_file_path.endswith('.epub'):
engine.start(epub_abs_file_path)
Expand Down

0 comments on commit a61158c

Please sign in to comment.