code: def path_for(self, *args):
          
          if args and args[0].startswith(os.path.sep):
              return os.path.join(*args)
          return os.path.join(self._root_path or os.getcwd(), *args)
docs: Path containing _root_path