View Single Post
Old 04-20-2018, 10:20 PM   #26
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,306
Karma: 211545324
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Sorry roger, I don't know what you're trying to say/ask either.
Quote:
Originally Posted by roger64 View Post
When you wish to insert them back in the new html file, you'll need some benedictine patience to find where is their expected right place. For this, you'll have to look back in the ePub for each image. It's a tedious process.
Why would you need to "insert" the images back into anything? The image links in the newly-generated monolithic html file are are already adjusted properly for every image in the *_files directory. The images are already IN their "expected right place." Opening the html file in a browser will show this. There's no image inserting to be done. And so far as I can tell, the original image file-name is left untouched in the plugin's output. Only the directory path has changed (quite obviously).

@PeTrDu:
I get a syntax error immediately when trying to run v0.1.0 of the plugin on Linux.
Code:
SyntaxError: name 'didFailCopy' is used prior to global declaration
Error: name 'didFailCopy' is used prior to global declaration (plugin.py, line 312)
Moving the "global didFailCopy" line to before the conditional test of didFailCopy's value in the "filecopybin" method alleviates the issue.

From the Python documentation:
Quote:
Names listed in a global statement must not be used in the same code block
textually preceding that global statement.
http://docs.python.org/reference/sim...ts.html#global

Is no else experiencing this?

Last edited by DiapDealer; 04-20-2018 at 10:24 PM.
DiapDealer is offline   Reply With Quote