[Python-Dev] ConfigParser patches

Trent Mick trentm at ActiveState.com
Mon Oct 18 01:35:19 CEST 2004


> Modify your PATHEXT environment variable:
> 
>    PATHEXT=.PY;.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> 
> ...
> You can put .pyc in your path too, but then you'll get the compiled version
> even if the uncompiled version is newer.  But you can always compile them.

Or you can put .pyc _after_ .py on your PATHEXT and then the .py will 
always get picked up first for Python to decide whether the .pyc can be 
used. If there is only a .pyc around then it will get picked up.

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl;.py;.pyw;.pyc;.pyo;.pys


Trent

-- 
Trent Mick
trentm at activestate.com


More information about the Python-Dev mailing list