Mercurial > piecrust2
comparison piecrust/app.py @ 56:2d617b889b00
Make template directories properly absolute.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 26 Aug 2014 23:17:20 -0700 |
parents | 2f717f961996 |
children | 563ce5dd02af |
comparison
equal
deleted
inserted
replaced
55:45828c4167ad | 56:2d617b889b00 |
---|---|
510 conf_dirs = self.config.get(conf_name) | 510 conf_dirs = self.config.get(conf_name) |
511 if conf_dirs is not None: | 511 if conf_dirs is not None: |
512 if isinstance(conf_dirs, str): | 512 if isinstance(conf_dirs, str): |
513 dirs.append(os.path.join(self.root_dir, conf_dirs)) | 513 dirs.append(os.path.join(self.root_dir, conf_dirs)) |
514 else: | 514 else: |
515 dirs += [p for p in conf_dirs if os.path.join(self.root_dir, p)] | 515 dirs += [os.path.join(self.root_dir, p) for p in conf_dirs] |
516 | 516 |
517 # Add the default directory if it exists. | 517 # Add the default directory if it exists. |
518 default_dir = os.path.join(self.root_dir, default_rel_dir) | 518 default_dir = os.path.join(self.root_dir, default_rel_dir) |
519 if os.path.isdir(default_dir): | 519 if os.path.isdir(default_dir): |
520 dirs.append(default_dir) | 520 dirs.append(default_dir) |