From ec23c94645611e195b57dab9af8744603b123611 Mon Sep 17 00:00:00 2001 From: tBunnyMan Date: Thu, 12 Jul 2012 07:32:08 -0700 Subject: [PATCH] Made the develop server init script it's own question per req. Cleaned up an improper whitespace found on 207 as well. --- pelican/tools/pelican_quickstart.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pelican/tools/pelican_quickstart.py b/pelican/tools/pelican_quickstart.py index 577a435d..b9a1ec24 100755 --- a/pelican/tools/pelican_quickstart.py +++ b/pelican/tools/pelican_quickstart.py @@ -160,7 +160,8 @@ Please answer the following questions so this script can generate the files need else: CONF['default_pagination'] = False - mkfile = ask('Do you want to generate a Makefile and develop server script to easily manage your website?', bool, True) + mkfile = ask('Do you want to generate a Makefile to easily manage your website?', bool, True) + develop = ask('Do you want to generate a local develop server init script?', bool, True) if mkfile: if ask('Do you want to upload your website using FTP?', answer=bool, default=False): @@ -204,7 +205,6 @@ Please answer the following questions so this script can generate the files need print('Error: {0}'.format(e)) if mkfile: - try: with open(os.path.join(CONF['basedir'], 'Makefile'), 'w') as fd: for line in get_template('Makefile'): @@ -214,6 +214,7 @@ Please answer the following questions so this script can generate the files need except OSError, e: print('Error: {0}'.format(e)) + if develop: try: with open(os.path.join(CONF['basedir'], 'develop_server.sh'), 'w') as fd: for line in get_template('develop_server.sh'):