Parent folder

Hi,

I have a folder Dat, and I would like the root folder to be the parent of the project folder. Is there any way I can get access to that folder?

I know that I can use project.folder to access the current folder. But I can’t find a simple way to traverse the directory structure besides importing the ‘sys’ library in Python. Is that the best way to do it, or is there some quick syntax using project.folder?

Thanks

‘…/’+project.folder

does that work?

No, it doesn’t.

I’ve also tried project.folder+‘/…/’ which does not work either.

Although now that I’m looking into it, just using project.folder does not work either. Are the parameter fields for folder supposed to be able to evaluate a built in variable like project.folder?

Ok, I’ve figured this out, I was missing something quite obvious.

I was using project.folder as a constant, not as an expression. Once switching to an expression, everything works fine.

And for future reference, this is the expession for the parent folder:
project.folder+“/…/”

Oh cool sorry for the wrong answer.
of course prepending “C:/Users/me/Desktop/” with “…/” doesn’t work. :blush: