def __getattr__()

in tsqa/environment.py [0:0]


    def __getattr__(self, name):
        # Raise an error for suffixes we don't know about
        if name not in Layout.suffixes:
            raise AttributeError(name)
        # If our prefix is not set, we don't have any other paths.
        if self.prefix is None:
            return None
        # Yay, we have a path.
        return str(os.path.join(self.prefix, Layout.suffixes[name]))