From 5cb009d782a94d5260d0e3e6cff961531a1fb8d1 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Mon, 23 Jul 2012 18:37:12 +0200 Subject: [PATCH] if not virtualenv is defined, fallback on '.' --- pelican/tools/pelican_quickstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/tools/pelican_quickstart.py b/pelican/tools/pelican_quickstart.py index f25e50aa..9eef105e 100755 --- a/pelican/tools/pelican_quickstart.py +++ b/pelican/tools/pelican_quickstart.py @@ -139,7 +139,7 @@ Please answer the following questions so this script can generate the files need '''.format(v=__version__)) - project = os.path.join(os.environ['VIRTUAL_ENV'], '.project') + project = os.path.join(os.environ.get('VIRTUAL_ENV', '.'), '.project') if os.path.isfile(project): CONF['basedir'] = open(project, 'r').read().rstrip("\n") print('Using project associated with current virtual environment. Will save to:\n%s\n' % CONF['basedir'])