Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Set the current choice. Update photo dir. too.

        def set_current_choice(choice):
    """Set the current choice. Update photo dir. too."""
    global CURRENT_CHOICE, PHOTO_DIR
    
    CURRENT_CHOICE = choice
    PHOTO_DIR = get_curr_photo_dir()
        


src/w/a/Wallpaper-Downloader-and-Rotator-for-Gnome-HEAD/01_wallpaper_downloader.py   Wallpaper-Downloader-and-Rotator-for-Gnome(Download)
def get_images_from_site(site_key):
    """Get images from a given site."""
    cfg.set_current_choice(site_key)
    directories.check_photo_dir()
 
        get_images_from_site(site_key)
 
    cfg.set_current_choice(save_choice)
 
    print "#"