Relative path to project command

Hi,

Im using project commands to compile and run my app directly from Tiled. Working great. Except when collaborating. I can’t get the commands to work using relative paths (relative to the project workspace file).

Is this possible to achieve?

Thanks,
JV

There are a number of substituted variables when defining commands, but I just realized %projectpath, which was added in Tiled 1.4, is still undocumented. This variable should enable running commands relative to the project file.

I’m going to add it to the documentation right now. :slight_smile:

2 Likes

Thanks! Works perfectly now.