trac-ticketlinks / setup.py

Diff from to
          self.siteconfig()
 
      def siteconfig(self):
+         conf_dir = os.path.join(self.prefix, 'share', 'trac', 'conf')
          templates_dir = os.path.join(self.prefix, 'share', 'trac', 'templates')
          htdocs_dir = os.path.join(self.prefix, 'share', 'trac', 'htdocs')
          wiki_dir = os.path.join(self.prefix, 'share', 'trac', 'wiki-default')
          macros_dir = os.path.join(self.prefix, 'share', 'trac', 'wiki-macros')
-         f = open(_p('trac/siteconfig.py'),'w')
+         f = open(_p('trac/siteconfig.py'), 'w')
          f.write("""
 # PLEASE DO NOT EDIT THIS FILE!
 # This file was autogenerated when installing %(trac)s %(ver)s.
 #
+__default_conf_dir__ = %(conf)r
 __default_templates_dir__ = %(templates)r
 __default_htdocs_dir__ = %(htdocs)r
 __default_wiki_dir__ = %(wiki)r
 __default_macros_dir__ = %(macros)r
 
-""" % {'trac':PACKAGE, 'ver':VERSION, 'templates':_p(templates_dir),
-       'htdocs':_p(htdocs_dir), 'wiki':_p(wiki_dir), 'macros':_p(macros_dir)})
+""" % {'trac': PACKAGE, 'ver': VERSION, 'conf': _p(conf_dir),
+       'templates': _p(templates_dir), 'htdocs': _p(htdocs_dir),
+       'wiki': _p(wiki_dir), 'macros': _p(macros_dir)})
          f.close()
 
          # Run actual install
                 mode |= 044
                 os.chmod(path, mode)
 
-
 # Our custom bdist_wininst
 import distutils.command.bdist_wininst
 from distutils.command.bdist_wininst import bdist_wininst
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.