Changeset 5119
- Timestamp:
- 08/10/08 11:35:29 (5 months ago)
- Files:
-
- trunk/tg/config.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tg/config.py
r5118 r5119 56 56 self.auth_backend = None 57 57 self.serve_static = True 58 self.paths = Bunch() 58 59 59 60 def setup_paths(self): 60 root = os.path.dirname(os.path.abspath( 61 self.package.__file__))62 self.paths = dict(root=root,61 root = os.path.dirname(os.path.abspath(self.package.__file__)) 62 # The default paths: 63 paths = dict(root=root, 63 64 controllers=os.path.join(root, 'controllers'), 64 65 static_files=os.path.join(root, 'public'), 65 66 templates=[os.path.join(root, 'templates')]) 67 # If the user defined custom paths, then use them instead of the 68 # default ones: 69 paths.update(self.paths) 70 self.paths = paths 66 71 67 72 def init_config(self, global_conf, app_conf):