@classmethod
    def from_file(cls, filename):
        if os.path.exists(filename):
            fid = open(filename, "rb")
            try:
                return cls(cPickle.load(fid))
            finally:
                fid.close()
        else:
            return cls()
Create a new instance from a pickled file.
dataset/ETHPy150Open cournape/Bento/bento/commands/dependency.py/CommandDataProvider.from_file