def __init__(self, options): """ Initialize environment """ Environ.__init__(self, options) self.fname = options['fname'] if self.fname.startswith('file://'): self.fname = self.fname[7:]
def __init__(self, options): """ Initialize environment """ Environ.__init__(self, options) prefix = self.vcs_id + '//' s = options['fname'][len(prefix) + 1:].split(self.fname_sep) self.repo = self.trimRepo(self.fname_sep.join(s[:-1])) s = s[-1].split(self.commit_sep) self.fname = self.commit_sep.join(s[:-1]) self.commit = s[-1] self.encoded_repo = self.encodePath(self.repo) self.storage = Config.slave['storage_path']