summaryrefslogtreecommitdiffstats
path: root/nikola/console.py
blob: fae0ecde9def29cca6f80d4c858f9fd48d8e5bbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
from __future__ import print_function, unicode_literals

from nikola import Nikola
try:
    import conf
    SITE = Nikola(**conf.__dict__)
    SITE.scan_posts()
    print("You can now access your configuration as conf and your site engine "
          "as SITE")
except ImportError:
    print("No configuration found.")