Python scripting with Paint Shop Pro 8.0

John J. Lee jjl at pobox.com
Sun Jul 20 19:19:44 EDT 2003


Marc Wilson <marc at cleopatra.co.uk> writes:
[...]
> There's no obvious way to specify this on the command line- in fact the
> phrase "command line" doesn't seem to occur in the help.
> 
> The scripts all start with "from JascApp import *" - does this suggest that
> the scripts are callable from "plain" python?  I want a "quiet" execution

Yes.  Do a find for 'JascApp.pyd'.  Or just for '*.pyd'.


> with no Windows interaction.  I assume that there is a library called
> JascApp.<something> and the path would need to include that?

Yes, <something> == 'pyd' usually.  But you never know the ways people
(and especially large companies) like to mess about with conventional
ways of doing things.

The way module search paths are handled is generally less easy to
predict.  Even in the normal case, I can't remember how .pyd's are
found, if I ever knew.  Presumably Python is bundled with the
application, in some form?  In which case, it may not be trivial to
import the module.  Probably not hard once you know the answer, though
<wink>.


John




More information about the Python-list mailing list