
aaron@...749... wrote:
Sending this again because I never saw it come through on the list. ted@...11... wrote:
On Tue, 12 Apr 2005 aaron@...749... wrote:
<command reldir="path">python "C:\Path\To\Script\script.py"</command>
What is the proper syntax for a write once run anywhere *.inx file?
Well, I think that the problem is that we don't have one. I'm open to suggestions. Does that mean that Windows won't execute the #! at the top of files?
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.