Skip to content

Commit 4015404

Browse files
committedJan 17, 2015
Try to fix AppVeyor by using shell=True on Windows
(in check.py; I believe we had similar problems with less/sass before)
1 parent f55b6ed commit 4015404

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎nikola/plugins/command/check.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ def _call_nikola_list(site, arguments):
4747
command.append('--conf=' + site.configuration_filename)
4848
command.extend(["list", "--all"])
4949
result = []
50-
for task in subprocess.Popen(command, shell=False, stdout=subprocess.PIPE).stdout.readlines():
50+
if os.name == 'nt':
51+
shell = True
52+
command = command.join(' ')
53+
else:
54+
shell = False
55+
for task in subprocess.Popen(command, shell=shell, stdout=subprocess.PIPE).stdout.readlines():
5156
result.append(task.decode('utf-8'))
5257
return result
5358

0 commit comments

Comments
 (0)
Please sign in to comment.