Server IP : 184.154.167.98 / Your IP : 3.137.217.236 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib64/python2.7/Tools/scripts/ |
Upload File : |
� �fc @ 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 � Z d � Z e d k ry e � n d S( s 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����Nt Environmentt PATHu %PATH%c C sg 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 } n 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( Nt Scriptst APPDATAt USER_SITEs %APPDATA%i ( t ost patht dirnamet normpatht syst executablet joint environt hasattrt siteR t replacet Nonet _winregt CreateKeyt HKCUt ENVt QueryValueExR t WindowsErrort DEFAULTt isdirt appendt pathsept SetValueExt REG_EXPAND_SZ( t pythonpatht scriptst appdatat userpatht userscriptst keyt envpatht pathsR ( ( s2 /usr/lib64/python2.7/Tools/scripts/win_add2path.pyt modify s&