start .pyo files with doubleclick on windows

News123 news123 at free.fr
Sun Jan 24 23:36:53 CET 2010


Hi Alf,





Alf P. Steinbach wrote:
> * News123:
>> Hi,
>>
>>
>> I'd like to start .pyo files under windows with a double click.
> 
> C:\> assoc .pyo
> .pyo=Python.CompiledFile
> 
> C:\> ftype python.compiledfile
> python.compiledfile="C:\Program Files\cpython\python31\python.exe" "%1" %*
> 
> C:\> _
> 
> 
> Use ftype to change the association.

Thanks a lot, I leared something new about Windows


What I did now is this:

assoc .pyo=Python.CompiledOptimizedFile
ftype Python.CompiledOptimizedFile="C:\Python26\python.exe" -OO "%1" %*

bye

N

> 
> 
> Cheers & hth.,
> 
> - Alf



More information about the Python-list mailing list