Source

trac-ticketlinks / setup.py

Diff from to

File setup.py

          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