moinsetup

Changeset

56:4a9769fe6ea2
2011-10-15 Paul Boddie raw files shortlog changelog graph Added listing of theme directories to the show_config method.
moinsetup.py (file)
     1.1 --- a/moinsetup.py	Sat Oct 15 23:52:47 2011 +0200
     1.2 +++ b/moinsetup.py	Sat Oct 15 23:57:22 2011 +0200
     1.3 @@ -497,6 +497,13 @@
     1.4          print
     1.5          print "%-24s%s" % ("site-level", self.get_site_config())
     1.6          print "%-24s%s" % ("global", self.get_global_config())
     1.7 +        print
     1.8 +        print "Theme directories"
     1.9 +        print "-----------------"
    1.10 +        print
    1.11 +
    1.12 +        for theme in self.get_theme_directories():
    1.13 +            print "%-24s%s" % theme
    1.14  
    1.15      def _get_abspath(self, d):
    1.16          return d and abspath(d) or None
    1.17 @@ -1218,10 +1225,11 @@
    1.18          this_dir = os.getcwd()
    1.19          chdir(extension_dir)
    1.20  
    1.21 -        options = "install --install-lib=%s" % self.prefix_site_packages
    1.22 -
    1.23 -        os.system("python setup.py %s" % options)
    1.24 -        chdir(this_dir)
    1.25 +        try:
    1.26 +            options = "install --install-lib=%s" % self.prefix_site_packages
    1.27 +            os.system("python setup.py %s" % options)
    1.28 +        finally:
    1.29 +            chdir(this_dir)
    1.30  
    1.31      def install_plugins(self, plugins_dir, plugin_type):
    1.32