Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

        def update_env_path(newpaths):
    paths = os.environ['PATH'].lower().split(os.pathsep)
    for path in newpaths:
        if not path.lower() in paths:
            log.info("Inserting path \"%s\" to environment" % path)
            paths.insert(0, path)
            os.environ['PATH'] = path + os.pathsep + os.environ['PATH']
        


src/p/y/PySide-1.2.2/setup.py   PySide(Download)
from utils import has_option
from utils import option_value
from utils import update_env_path
from utils import init_msvc_env
from utils import regenerate_qt_resources
 
        # Update the PATH environment variable
        update_env_path([py_scripts_dir, qt_dir])
 
        build_name = "py%s-qt%s-%s-%s" % \
        # Try to ensure that tools built by this script (such as shiboken)
        # are found before any that may already be installed on the system.
        update_env_path([os.path.join(install_dir, 'bin')])
 
        # Tell cmake to look here for *.cmake files 

src/s/h/Shiboken-1.2.2/setup.py   Shiboken(Download)
from utils import has_option
from utils import option_value
from utils import update_env_path
from utils import init_msvc_env
from utils import regenerate_qt_resources
 
        # Update the PATH environment variable
        update_env_path([py_scripts_dir, qt_dir])
 
        build_name = "py%s-qt%s-%s-%s" % \
        # Try to ensure that tools built by this script (such as shiboken)
        # are found before any that may already be installed on the system.
        update_env_path([os.path.join(install_dir, 'bin')])
 
        # Tell cmake to look here for *.cmake files