airflow/models/dag.py
def relative_fileloc(self) -> pathlib.Path:
        """File location of the importable dag 'file' relative to the configured DAGs folder."""
        path = pathlib.Path(self.fileloc)
        try:
            return path.relative_to(settings.DAGS_FOLDER)
        except ValueError:
            # Not relative to DAGS_FOLDER.
            return path
File location of the importable dag 'file' relative to the configured DAGs folder.
File location of the importable dag 'file' relative to the configured DAGs folder.
File location of the importable dag ' file ' relative to the configured DAGs folder .
def relative_fileloc(self) -> pathlib.Path:
        path = pathlib.Path(self.fileloc)
        try:
            return path.relative_to(settings.DAGS_FOLDER)
        except ValueError:
            return path
def relative_fileloc ( self ) -> pathlib . Path : path = pathlib . Path ( self . fileloc ) try : return path . relative_to ( settings . DAGS_FOLDER ) except ValueError : return path
File location of the importable dag 'file' relative to the configured DAGs folder.
File location of the importable dag ' file ' relative to the configured DAGs folder .
"""File location of the importable dag 'file' relative to the configured DAGs folder.""" # Not relative to DAGS_FOLDER.
self