Changeset - 1ae6e0aa87c5
[Not reviewed]
default
0 1 0
Mads Kiilerich - 8 years ago 2017-08-12 17:30:45
mads@kiilerich.com
rcext: show extension path in prompt for overwriting - let the user know what we are asking about
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/paster_commands/make_rcextensions.py
Show inline comments
 
@@ -49,14 +49,14 @@ class Command(BasePasterCommand):
 
        here = config['here']
 
        content = pkg_resources.resource_string(
 
            'kallithea', os.path.join('config', 'rcextensions', '__init__.py')
 
        )
 
        ext_file = os.path.join(here, 'rcextensions', '__init__.py')
 
        if os.path.exists(ext_file):
 
            msg = ('Extension file already exists, do you want '
 
                   'to overwrite it ? [y/n]')
 
            msg = ('Extension file %s already exists, do you want '
 
                   'to overwrite it ? [y/n]') % ext_file
 
            if not ask_ok(msg):
 
                print 'Nothing done, exiting...'
 
                return
 

	
 
        dirname = os.path.dirname(ext_file)
 
        if not os.path.isdir(dirname):
0 comments (0 inline, 0 general)