def wait_for_download_folder():
 while (not cfg.download_dir.test_path()):
  logging.debug('Waiting for "incomplete" folder')
  time.sleep(2.0)

def wait_for_download_folder ( ) : while ( not cfg . download_dir . test_path ( ) ) : logging . debug ( 'Waiting for "incomplete" folder' ) time . sleep ( 2.0 )
wait for download folder to become available .