Skip to content

Commit

Permalink
From comment in modelica#3433
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Nov 21, 2023
1 parent 86be2ab commit 30af6f2
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 30af6f2

Please sign in to comment.