Quote:
Originally Posted by KevinH
Hi,
That was fixed in Sigil 0.8.2. Are you sure you are using the very latest version?
Cuurently a print statement will show up immediately in the PluginRunner Window.
Kevin
|
Hi, Kevin
I'm using Sigil 0.8.2 on Win7. I create a test plugin as below:
Code:
def run(bk):
print 'This line should be displayed.'
print variable_not_exist
return 0
Running this plugin, the message is:
Code:
Status: failed
Traceback (most recent call last):
File "C:\Program Files\Sigil\plugin_launchers\\python\launcher.py", line 135, in launch
self.exitcode = target_script.run(container)
File "C:\Users\xj\AppData\Local\sigil-ebook\sigil\plugins\test\plugin.py", line 7, in run
print variable_not_exist
NameError: global name 'variable_not_exist' is not defined
Error: global name 'variable_not_exist' is not defined
"variable_not_exist" is undefined to trigger the error. I expect the message "This line should be displayed." to show up. But it didn't.