[Tutor] drag-and-drop argument passing

Pijus Virketis virketis@post.harvard.edu
Thu, 27 Jun 2002 19:51:17 +0300


<HTML><HEAD>
<BASEFONT FACE=3D"Arial" SIZE=3D"2" COLOR=3D"#000000">
</HEAD>
<BODY>
<div>Alan,<br></div>
<div><br>
<FONT COLOR=3D"#000080">&gt;OK, Just do it. It should just=
 work.</FONT><br></div>
<div><FONT COLOR=3D"#000080">&gt;</FONT><br></div>
<div><FONT COLOR=3D"#000080">&gt;Windows passes dragged files in as=
 command line args.</FONT><br>
<FONT COLOR=3D"#000080">&gt;I'm not so sure about multiple files=
 tho' but try a</FONT><br>
<FONT COLOR=3D"#000080">&gt;single file to see if that works=
 first.</FONT><br></div>
<div><FONT COLOR=3D"#000080"><br>
</FONT>I did try to do it before wailing for help, and I just=
 can't ... I am using Windows XP, and I am just not allowed to=
 drop anything onto .py files. I even set the PATHEXT so that .py=
 files are recognised as executable, but that did no good.=
 <br></div>
<div>&nbsp;</div>
<div>&gt;Get it to log sys.args and see what Windows passes=
 <br></div>
<div>&gt;to it...<br></div>
<div>&nbsp;</div>
<div>Funny, I had a script just like that ready. :) Something's=
 keeping me from using it, though. Perhaps it's something=
 specific to XP? How else can I tell the system .py files are=
 executable besides setting PATHEXT? I looked at file properties,=
 but I see no equivalent to the Unix &quot;execute&quot;=
 tag.<br>
<br>
<br>
<br></div>
<div>-- <br></div>
<div>&quot;Anyone attempting to generate random numbers by=
 deterministic means is, of course, living in a state of=
 sin.&quot; -- John Von Neumann<br></div>
</body></html>