View Single Post
Old 01-10-2024, 08:51 PM   #1227
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
Thank you for your work.

I have tested and it could extract the file successfully. The purpose is fulfilled.

For testing purpose, I ran it on a book without txtz format, it returned:

Code:
  File "ntpath.py", line 540, in normpath
TypeError: expected str, bytes or os.PathLike object, not NoneType
I think I will have to figure out how to set condition (it only runs on books with the intended format). The "condition" and "scope" areas look alien to me.

and {path_to_format} looks like a built-in variable. Where can I find the list of built-in variables like this? I'm interested in path to current book folder [current book data folder].

I realize that if this code works out and if I can get necessary variables, I can have external apps (command line interface) do a lot of things.

Last edited by nqk; 01-10-2024 at 10:12 PM.
nqk is offline   Reply With Quote