Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def ask_path_exists(message, options):
    for action in os.environ.get('XPPKG_EXISTS_ACTION', ''):
        if action in options:
            return action
    return ask(message, options)
        


src/x/p/XPpkg-0.3dev.3/xppkg/download.py   XPpkg(Download)
from xppkg.backwardcompat import string_types
from xppkg.exceptions import InstallationError
from xppkg.util import create_download_cache_folder, splitext, format_size, display_path, backup_dir, ask_path_exists, unpack_file, cache_download
from xppkg.log import logger
 
    if os.path.exists(download_location):
        response = ask_path_exists(
            'The file %s exists. (i)gnore, (w)ipe, (b)ackup ' %
            display_path(download_location), ('i', 'w', 'b'))
        if response == 'i':