windows-python-question

Stefan Schukat SSchukat at dspace.de
Wed May 29 12:13:24 EDT 2002


Just create a file extension and set the open command appropiate
e.g. 

""""
REGEDIT4

[HKEY_CLASSES_ROOT\.rnt]
@="RNT.File"

[HKEY_CLASSES_ROOT\RNT.File\shell\Open]

[HKEY_CLASSES_ROOT\RNT.File\shell\Open\command]
@="[Path to Python]\\python.exe \"[Path to rnt script]\" \"%1\" %*"


  Stefan

-----Original Message-----
From: Uwe Schmitt [mailto:uwe at rocksport.de]
Sent: Wednesday, May 29, 2002 3:32 PM
To: python-list at python.org
Subject: windows-python-question


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 ???

Greetings, Uwe.

-- 
Dr. rer. nat. Uwe Schmitt      ICQ# 159647634   Uwe.Schmitt at num.uni-sb.de
Universitaet des Saarlandes                     Angewandte Mathematik
Building 36.1 Room 4.17         PO-Box 151150   D-66041 Saarbruecken
Mobile:0177/6806587    Fax:+49(0)681/302-4435   Office:+49(0)681/302-2468
-- 
http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list