but we know the location, it's ```self.templatedir```.
the ```os.chdir(curdir)```, is optional, and used to go back to the older directory (if just in case something was relying on curdir).

P.S. the other option looks even nastier, see https://github.com/dmwm/DAS/commit/b1fccc80bf70e76d0669a57204f9ea9233d9ecbf#diff-efb4f7ed3685791216558574d14b8a88R101 and how its used in template: https://github.com/dmwm/DAS/commit/b1fccc80bf70e76d0669a57204f9ea9233d9ecbf#diff-7ecba0cfecb628adab67ae576aa07f82R11