(path)
Context that substitutes the system path to test for API presence or absence
Context that substitutes the system path to test for API presence or absence
Context that substitutes the system path to test for API presence or absence
def TemporaryPath(path):
    """Context that substitutes the system path to test for API presence or absence"""
    old_path = list(sys.path)
    try:
        sys.path = path + sys.path
        yield
    finally:
        sys.path = old_path
def TemporaryPath ( path ) : old_path = list ( sys . path ) try : sys . path = path + sys . path yield finally : sys . path = old_path