Is this used anywhere else ... ahh yes, okay it's used in `gen_rules.py` ... infact it duplicates functionality that should be removed.

Since this is now a convenience function, it's name should be public, so change it to `absolute_path` please.