[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">>OK, Just do it. It should just=
work.</FONT><br></div>
<div><FONT COLOR=3D"#000080">></FONT><br></div>
<div><FONT COLOR=3D"#000080">>Windows passes dragged files in as=
command line args.</FONT><br>
<FONT COLOR=3D"#000080">>I'm not so sure about multiple files=
tho' but try a</FONT><br>
<FONT COLOR=3D"#000080">>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> </div>
<div>>Get it to log sys.args and see what Windows passes=
<br></div>
<div>>to it...<br></div>
<div> </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 "execute"=
tag.<br>
<br>
<br>
<br></div>
<div>-- <br></div>
<div>"Anyone attempting to generate random numbers by=
deterministic means is, of course, living in a state of=
sin." -- John Von Neumann<br></div>
</body></html>