code: def root_dir(self):
          
          if self.cfg.script:
              return os.path.dirname(self.cfg.script)
docs: Root directory of this :class:`Configurator`.
  
          Evaluated from the :attr:`script` attribute.