On 13 jan 2010, at 12:16, luigi scarso wrote:

On Wed, Jan 13, 2010 at 12:12 PM, Hans van der Meer <H.vanderMeer@uva.nl> wrote:
what about
\setupexternalfigures[directory={\DATADIRECTORY}]
?

Tried it but NO. That didn't work. Without a space in the directory name I
can find the picture. But as soon as a space gets in the directory name then
the picture file is not found.
:-(
the last one...
\setupexternalfigures[directory={"\DATADIRECTORY"}]


NO again. Doing:
\DataDirectory{/Users/hans/Movies/Inlays/Muziek/MadisonSquare Garden} % defs \DATADIRECTORY
\setupexternalfigures[directory={"\DATADIRECTORY"}]


gives an error:
! LuaTeX error <main ctx instance>:1: ')' expected near 'Garden'.
\setfigurepathlist ...cation ","\@@exdirectory ")}

Putting the "s around the name triggers the error.

Hans van der Meer