Skip to content

Commit

Permalink
Try to fix AppVeyor by using shell=True on Windows
Browse files Browse the repository at this point in the history
(in check.py; I believe we had similar problems with less/sass before)
  • Loading branch information
Kwpolska committed Jan 17, 2015
1 parent f55b6ed commit 4015404
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nikola/plugins/command/check.py
Expand Up @@ -47,7 +47,12 @@ def _call_nikola_list(site, arguments):
command.append('--conf=' + site.configuration_filename)
command.extend(["list", "--all"])
result = []
for task in subprocess.Popen(command, shell=False, stdout=subprocess.PIPE).stdout.readlines():
if os.name == 'nt':
shell = True
command = command.join(' ')
else:
shell = False
for task in subprocess.Popen(command, shell=shell, stdout=subprocess.PIPE).stdout.readlines():
result.append(task.decode('utf-8'))
return result

Expand Down

0 comments on commit 4015404

Please sign in to comment.