Absolute path in a module

Hello,

I’m currently reorganizing all patches and subpatches I did.
I put some of them in the “modules” folder of the vvvv release (more exactly on a personal subdir of this folder).
It works fine, I have them in the list of the available nodes with the right click.

But if a pin of a module requests a filename, it is with a relative path and the module doesn’t find the file (since I think it takes the given path from its location and not from the location of the patch using it).
Hope I’m clear.

How could I manage this problem ?
Is there a solution to transform a relative path into absolute path ? (I tried with the concatenation of the outputs of the FileName node, which gives something like “C:/blabla/MyFile”, it doesn’t work).

Matthieu

Is there a solution to transform a relative path into absolute path ? (I tried with the concatenation of the outputs of the FileName node, which gives something like “C:/blabla/MyFile”, it doesn’t work).

Sorry actually it works, but only in the patch calling the module (since FileName gives the path of the current patch), which is not really satisfying, it’s heavy to do that for each filename. It would be better if I could put this little function in the module.

Any idea ?

RelativeToAbsolute.v4p (3.8 kB)

maybe SystemFolder (File) is useful for your purposes

e.g. with Folder: Current Patch

thanks for the reminder to this known problem. for now concatenating an absolut path to modules filenames inputs is the way to go.

it was a bit tricky, but it should be fixed now for beta>23

a big YAY for fixing this minor issue!!1 :)

OK.
Thank you !!