windows-python-question

Terry Reedy tjreedy at udel.edu
Wed May 29 11:46:15 EDT 2002


"Uwe Schmitt" <uwe at rocksport.de> wrote in message
news:ad2oo9$d55fq$1 at hades.rz.uni-sb.de...
> Hi,
>
> I'd like to write a python-program which is startet under Win when
> a file with an apropriate extension ('.rnt' for example) is
> double-klicked. How does my python-program know which file was
> clicked so that my program can load it ???

If the association is set up correctly via Windows Explorer
View/Folder Options/File Types or via RegEdit or registry system
calls,  file name should, I believe, be sys.argv[1].

TJR






More information about the Python-list mailing list