ricardo lafuente wrote:
Here's a call for help, as i'm totally stuck in this. I've been getting familiar with Python extensions and managed to whip up a couple. I ran into an issue, though: if i call an external command (using os.system('pwd'), for the simplest example), it executes it but doesn't go through the rest of the extension script, closing the window and returning to Inkscape. (i believe the same happens with exec statements) I thought it could be that the extension architecture doesn't allow for running external commands, but fact is that the extension actually executes it before borking. Am i missing something obvious?
I don't know of any such limitation. There are even a few scripts included with Inkscape that execute external processes. Check out gimp_xcf.py. It executes a number of external processes of both Inkscape and GIMP.
http://inkscape.svn.sourceforge.net/viewvc/inkscape/inkscape/trunk/share/ext...
Perhaps if you include a complete example of the scripts that are causing you problems, we can better help.
Aaron Spike