def localCopy(localFile, cpCommand):
    if not os.access(localFile, os.R_OK):
        cmd=cpCommand % localFile
        print 'copying data:', cmd
        exit_code=os.system(cmd)
        if exit_code!=0:
            raise OSError((exit_code, 'command failed: %s' % cmd))
    return localFile
if not already present on local file location, run cpCommand
dataset/ETHPy150Open cjlee112/pygr/pygr/apps/leelabdb.py/localCopy