def backup_site(site): "backup site" from bench.utils import get_sites, backup_site if not site in get_sites(bench='.'): print 'site not found' sys.exit(1) backup_site(site, bench='.')
def backup_site(site): "backup site" from bench.utils import get_sites, backup_site if site not in get_sites(bench_path='.'): print('site not found') sys.exit(1) backup_site(site, bench_path='.')
def backup_site(site): "backup site" from bench.utils import get_sites, backup_site if not site in get_sites(bench='.'): print 'site not found' sys.exit(1) backup_site(site, bench='.')
def backup_site(site): from bench.utils import get_sites, backup_site if site not in get_sites(bench_path='.'): print('Site `{0}` not found'.format(site)) sys.exit(1) backup_site(site, bench_path='.')