diff options
| author | 2014-06-13 21:51:02 -0300 | |
|---|---|---|
| committer | 2014-06-13 21:51:02 -0300 | |
| commit | 58c4878526dec5510f23c812274686787d8724ba (patch) | |
| tree | 5f2374bc17adb10e15f7e5b4576595d9cc2ef17e /nikola/plugins/basic_import.py | |
| parent | fa50632a9d87c3989566fed3e49c160a132e0d14 (diff) | |
Imported Upstream version 7.0.1upstream/7.0.1
Diffstat (limited to 'nikola/plugins/basic_import.py')
| -rw-r--r-- | nikola/plugins/basic_import.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nikola/plugins/basic_import.py b/nikola/plugins/basic_import.py index 27c0eb4..7b23f9c 100644 --- a/nikola/plugins/basic_import.py +++ b/nikola/plugins/basic_import.py @@ -29,6 +29,7 @@ import codecs import csv import datetime import os +from pkg_resources import resource_filename try: from urlparse import urlparse @@ -89,13 +90,13 @@ class ImportMixin(object): def generate_base_site(self): if not os.path.exists(self.output_folder): - os.system('nikola init ' + self.output_folder) + os.system('nikola init -q ' + self.output_folder) else: self.import_into_existing_site = True utils.LOGGER.notice('The folder {0} already exists - assuming that this is a ' 'already existing Nikola site.'.format(self.output_folder)) - filename = os.path.join(os.path.dirname(utils.__file__), 'conf.py.in') + filename = resource_filename('nikola', 'conf.py.in') # The 'strict_undefined=True' will give the missing symbol name if any, # (ex: NameError: 'THEME' is not defined ) # for other errors from mako/runtime.py, you can add format_extensions=True , |
