def __init__(self, resource, rule, mode, processor):
            self.resource = resource
            self.processor = processor
            localFile, cpCommand = rule
            if not os.access(localFile, os.R_OK):
                cmd = cpCommand % localFile
                print 'copying data:', cmd
                os.system(cmd)
            # Now, initialise as a real file object.
            file.__init__(self, localFile, mode)
resource is name of the resource; rule is (localFile, cpCommand)
dataset/ETHPy150Open cjlee112/pygr/pygr/coordinator.py/ResourceFile.__init__