PATH doesn't include the folder where the patch is .....? what ?

Julien Bayle's icon

hello,
here: https://cycling74.com/docs/max5/vignettes/core/search_path.html I can read the path include the folder of the last loaded patch.
so I guess if I open an help patch, the patch's path is removed from the path.
right?

is there a way to handle that more dynamically ?

all the best,

pdelges's icon

Not sure to understand what you're after. You can dynamically manage your filepathes with the filepath object.

p

Julien Bayle's icon

I just want to have the folder where my patch is, inside the PATH.
I'll tweak & try filepath object.

thanks (a lot)

jvkr's icon

Additionally, there's the filepath object, which allows you to dynamically update file preferences.

Julien Bayle's icon

yes jvkr
I just tested
it works (obviously)

I need now to check a subfolder inside the folder where my patch is.

I always have:
/FOLDER/VIDEO

my patch is in /FOLDER
I need to grab filename in /FOLDER/VIDEO

pid's icon
Max Patch
Copy patch and select New From Clipboard in Max.

or just do something locally with a little hack?:

Julien Bayle's icon

thanks a lot for all your answers

Max Patch
Copy patch and select New From Clipboard in Max.

just that is enough for me:

the path message to thispatcher (and I even didn't know that :-( )