Page 1 of 1

Resolution of environment variable in Project definition file.

Posted: Sun Mar 21, 2021 11:04 am
by matsek
Hi,

I would like to add the folder My Documents to my project, without adding the folder path literally, as the path may change depending on the environment in which I open the project.

I tried the following:

<folder path="file://${homeDir}/Documents/Folder"/>

But this didnt work. The variable didn't get resolved when opening the project in the editor.

Help appreciated!

Re: Resolution of environment variable in Project definition file.

Posted: Mon Mar 22, 2021 2:47 pm
by adrian
Hello,

I'm afraid that's not possible. Environment variables are not resolved as part of paths. The project file locations indicated by folder/@path are usually paths relative to the project folder or absolute paths, if they are on a different file system or drive.

Regards,
Adrian