Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Let's do some verifications to be sure that everythign was set correctly.

        def self_verify():
    """Let's do some verifications to be sure that everythign was set correctly."""
    global BASE_DIR, MULTIPLE_CHOICE, ROTATOR_CHOICE
    
    if BASE_DIR.endswith('/'):      # remove trailing slash
        BASE_DIR = BASE_DIR[:-1]
        
    if CURRENT_CHOICE not in WALLPAPER_PAGES.keys():
        print >>sys.stderr, "Error: your CURRENT_CHOICE in the config file is invalid."
        sys.exit(2)
        
    if CURRENT_CHOICE not in MULTIPLE_CHOICE:
        print >>sys.stderr, "Error: CURRENT_CHOICE must be included in MULTIPLE_CHOICE."
        sys.exit(2)
         
    MULTIPLE_CHOICE = sorted(list(set(MULTIPLE_CHOICE)))    # remove duplicates
    for e in MULTIPLE_CHOICE:
        if e not in WALLPAPER_PAGES.keys():
            print >>sys.stderr, "Error: MULTIPLE_CHOICE contains an invalid entry."
            sys.exit(2)

    if len(ROTATOR_CHOICE) == 0:
        print >>sys.stderr, "Error: ROTATOR_CHOICE cannot be empty."
        sys.exit(2)
        
    ROTATOR_CHOICE = list(set(ROTATOR_CHOICE))    # remove duplicates
    for e in ROTATOR_CHOICE:
        if e not in WALLPAPER_PAGES.keys():
            print >>sys.stderr, "Error: ROTATOR_CHOICE contains an invalid entry."
            sys.exit(2)
        


src/w/a/Wallpaper-Downloader-and-Rotator-for-Gnome-HEAD/01_wallpaper_downloader.py   Wallpaper-Downloader-and-Rotator-for-Gnome(Download)
def main():
    """Control block."""
    cfg.self_verify()
    directories.check_base_dir()
    db.init()

src/w/a/Wallpaper-Downloader-and-Rotator-for-Gnome-HEAD/02_wallpaper_rotator.py   Wallpaper-Downloader-and-Rotator-for-Gnome(Download)
        # if you modify the config file, this script doesn't have to be restarted
        reload(cfg)
        cfg.self_verify()
 
        # The list of images is re-read in each iteration because Wallpaper Downloader