aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwustho <benawiadha@gmail.com>2020-04-16 07:43:05 +0700
committerwustho <benawiadha@gmail.com>2020-04-16 07:43:05 +0700
commit28da704e7a4401f4a54339f79ed5ad1895c3910d (patch)
tree54141c0fa6bcf8d298c4d2bdbcf2fbd5cfad2165
parentbd1863509bee8035579427f2cc40bdf20c03b0cb (diff)
downloadepy-28da704e7a4401f4a54339f79ed5ad1895c3910d.tar.gz
Allow adding args in DefaultViewer config and change "define:" to " Define:" in define_word()
-rwxr-xr-xepy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/epy.py b/epy.py
index d33faa7..0b74a6b 100755
--- a/epy.py
+++ b/epy.py
@@ -688,7 +688,7 @@ def find_dict_client():
def find_media_viewer():
global VWR
- if shutil.which(CFG["DefaultViewer"]) is not None:
+ if shutil.which(CFG["DefaultViewer"].split()[0]) is not None:
VWR = CFG["DefaultViewer"]
elif sys.platform == "win32":
VWR = "start"
@@ -1151,7 +1151,7 @@ def reader(ebook, index, width, y, pctg, sect):
SCREEN.bkgd(curses.color_pair(count_color+1))
return 0, width, y, None, ""
elif k in K["DefineWord"] and DICT is not None:
- word = input_prompt("define:")
+ word = input_prompt(" Define:")
if word is not None:
defin = define_word(word)
if defin in WINKEYS: