Skip to content

Commit

Permalink
as suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Oct 20, 2016
1 parent 0285f9c commit 36b8afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/plugins/command/plugin.py
Expand Up @@ -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')
Expand Down

0 comments on commit 36b8afc

Please sign in to comment.