Your IP : 216.73.216.213
�
��fR c @ s� d Z d d l Z d d l Z d d l Z d d l Z e j Z d Z d Z d Z d d � Z
d d � Z e d
k r e � n d S( u Add Python to the search path on Windows
This is a simple script to add Python to the Windows search path. It
modifies the current user (HKCU) tree of the registry.
Copyright (c) 2008 by Christian Heimes <christian@cheimes.de>
Licensed to PSF under a Contributor Agreement.
i Nu Environmentu PATHu %PATH%c C sh t j j t j j t j � � } t j j | d � } t j d } t t d � r t j
j | d � } t j j | d � } n d } t
j t t � �� } y t
j | t � d } Wn t k
r� t } Yn X| g } xK | | | f D]: } | r� | | k r� t j j | � r� | j | � q� q� Wt j j | � } t
j | t d t
j | � | | f SWd QXd S( Nu Scriptsu APPDATAu USER_SITEu %APPDATA%i ( u osu pathu dirnameu normpathu sysu
executableu joinu environu hasattru siteu USER_SITEu replaceu Noneu winregu CreateKeyu HKCUu ENVu QueryValueExu PATHu WindowsErroru DEFAULTu isdiru appendu pathsepu
SetValueExu
REG_EXPAND_SZ( u
pythonpathu scriptsu appdatau userpathu userscriptsu keyu envpathu pathsu path( ( u? /opt/alt/python33/lib64/python3.3/Tools/scripts/win_add2path.pyu modify s&