
13 Apr
2005
13 Apr
'05
12:51 p.m.
Jasper van de Gronde wrote:
Windows uses an association between file extension and applications that is stored in the registry.
It's possible to make use of this btw, so you CAN "execute" a python script directly. When using the command-line this can be accomplished by using "start script.py" and I believe the relevant API function is ShellExecute. Problems with this approach are that InkScape doesn't know for sure that the user hasn't meddled with his file associations to change this (the Python installer does set it up like this, but it can easily be changed) and it would only fix Windows, no other platforms would benifit from it.
"start script.py" may not work properly with pipes.
Aaron Spike