Docs: Add info about pelican-quickstart command path flag.

This commit is contained in:
carlosperate 2019-12-28 14:03:43 +00:00
commit 3004bb829c
2 changed files with 5 additions and 1 deletions

View file

@ -102,6 +102,10 @@ your site::
pelican-quickstart
If it is running inside a virtual environment it will try to detect the path
associated to it and save the project there. A custom path can be configured
using the ``--path`` flag.
Once you finish answering all the questions, your project will consist of the
following hierarchy (except for *pages* — shown in parentheses below — which
you can optionally add yourself if you plan to create non-chronological

View file

@ -200,7 +200,7 @@ needed by Pelican.
no_path_was_specified = hasattr(args.path, 'is_default_path')
if os.path.isfile(project) and no_path_was_specified:
CONF['basedir'] = open(project, 'r').read().rstrip("\n")
print('Using project associated with current virtual environment.'
print('Using project associated with current virtual environment. '
'Will save to:\n%s\n' % CONF['basedir'])
else:
CONF['basedir'] = os.path.abspath(os.path.expanduser(