 rimkojr
Member
|
I am having trouble getting the PyPN Save() method to work using portable PN2 v2.2.0.2240 and PyPN v0.12.2222.
The following code works with portable PN v2.0.10.1010 and PyPN v0.10.973 but not the new configuration:
@script("Save Current Document", "Editor")
def saveCurrentDoc():
doc = pn.CurrentDoc()
filename = doc.FileName
doc.Save(filename, True)
The error message when running on the new configuration is the following:
Python error: <class ‘Boost.Python.ArgumentError’>: Python argument types in
IDocument.Save(IDocument, unicode, bool)
did not match C++ signature:
Save(class extensions::IDocument {lvalue}, wchar_t const *, bool)
I’ve tried casting the filename variable as a string (it is a unicode) but no luck. Any ideas?
|
 Nux
Member
|
This bugs me too. I have a script runner, but it doesn’t work too well because I cannot save the script I’m running.
|
 simon
Key Master
|
Oops, this is a bug, please file it here:
http://code.google.com/p/pnotepad/issues/entry
|
 Nux
Member
|
Added here:
http://code.google.com/p/pnotepad/issues/detail?id=1244
|