Skip to content

Commit

Permalink
Merge pull request #3449 from HansOlsson/Recommend
Browse files Browse the repository at this point in the history
Recommend using most specific resource
  • Loading branch information
HansOlsson authored Nov 24, 2023
2 parents 86be2ab + 61a0176 commit 63858e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chapters/packages.tex
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ \section{External Resources}\label{external-resources}

\begin{nonnormative}
The use of a trailing segment separator is recommended when the resource is a directory and the file-system path will be prepended to relative file paths within the directory.
If possible, use URIs for specific files or specific sub-directories instead of appending relative paths to a generic URI such as \filename{modelica:/A/Resources/} as the latter creates a dependency on the entire directory.
\end{nonnormative}

For a Modelica-package stored as a single file, \filename{A.mo}, the resource \filename{modelica:/A/C.jpg} refers to a file \filename{C.jpg} stored in the same directory as \filename{A.mo}, but using resources in this variant is not recommended since multiple packages will share resources.
Expand Down

0 comments on commit 63858e5

Please sign in to comment.