Skip to content
Permalink
Browse files

as suggested

  • Loading branch information
ralsina committed Oct 20, 2016
1 parent 0285f9c commit 36b8afc5e8ab328a5b6b70e9745b184a154d53f4
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/plugins/command/plugin.py
@@ -284,13 +284,13 @@ def do_install(self, url, name, show_install_notes=True):

req_plug_path = os.path.join(dest_path, 'requirements-plugins.txt')
if os.path.exists(req_plug_path):
LOGGER.notice('This plugin requires other nikola plugins.')
LOGGER.notice('This plugin requires other Nikola plugins.')
LOGGER.info('Installing plugins using Nikola...')
print('Contents of the requirements-nonpy.txt file:\n')
try:
with io.open(req_plug_path, 'r', encoding='utf-8') as inf:
for plugname in inf.readlines():
subprocess.check_call((sys.executable, '-m', 'nikola', 'plugin', '-i', reqpath))
do_install(url, plugname, show_install_notes)
except subprocess.CalledProcessError:
LOGGER.error('Could not install a plugin.')
print('Contents of the requirements-plugins.txt file:\n')

0 comments on commit 36b8afc

Please sign in to comment.