I have two separate files, in different folders/directories, but with the same file name.
\begin{figure}[htp]
\includesvg[width = \textwidth]{/home/con/identify.target/A/svg/msa.svg}
\caption{}
\label{fig:1}
\end{figure} \FloatBarrier
\begin{figure}[htp]
\includesvg[width = \textwidth]{/home/con/identify.target/B/svg/msa.svg}
\caption{}
\label{fig:2}
\end{figure} \FloatBarrier
which is what I did originally, which doesn't work, as both images show identically
I have tried the solution from: \graphicspath : Images with duplicate filenames, different folder locations
which makes my code into
\graphicspath{{/home/con/identify.target/A/}}
\begin{figure}[htp]
\includesvg[width = \textwidth]{msa.svg}
\caption{}
\label{fig:1}
\end{figure} \FloatBarrier
\graphicspath{{/home/con/identify.target/B/}}
\begin{figure}[htp]
\includesvg[width = \textwidth]{msa.svg}
\caption{}
\label{fig:2}
\end{figure} \FloatBarrier
which unfortunately produces the same result, the images are still treated identically
I have also tried extractpath
and extractname
from the manual https://mirror.math.princeton.edu/pub/CTAN/graphics/svg/doc/svg.pdf
Renaming the files should work,but I don't want to have to rename thousands of files.