message_ix_models.model.transport.util.path_fallback
- message_ix_models.model.transport.util.path_fallback(context_or_regions: Context | str, *parts) Path [source]
Return a
Path
constructed from parts.If
context.model.regions
(or a string value as the first argument) is defined and the file exists in a subdirectory ofdata/transport/regions/
, return its path; otherwise, return the path indata/transport/
.