def get_default_image_path(self, reconstruction_fp, image_dp):
        """Get the (default) path that defines where to look for images."""
        if image_dp is None:
            return None
        elif image_dp == "":
            image_default_same_dp = os.path.dirname(reconstruction_fp)
            image_default_sub_dp = os.path.join(
                image_default_same_dp, "images"
            )
            if os.path.isdir(image_default_sub_dp):
                image_dp = image_default_sub_dp
            else:
                image_dp = image_default_same_dp
        return image_dp
Get the (default) path that defines where to look for images.
photogrammetry_importer/operators/import_op.py