abelardopardo/Adagio — Issue #9: Variable that holds the relative path from the project home
Author: jfisteus
Created: 2012-01-19 15:44:53+00:00
State: open

Sometimes it is useful to have access from a Properties.dgo file to the relative path from the project home to the current directory. For example, when replicating the source tree in the published tree, paths have to be harcoded in Properties.dgo, and need to be changed if the directory is renamed or moved to other location in the source tree.

I propose making a new variable available in Properties.dgo (e.g. `relative_basedir`) so that property files such as the following one work:

```
[gotodir]
files = %(resources_dir)s/files
export_dst = %(publish_dir)s/%(relative_basedir)s
```
There would be no need to change this Properties.dgo file event if the directory is moved around the source tree.

Consider it a low priority (wishlist) issue. I can do without it.