[pyqgis-console] Use python3 for editor subprocess calls

This commit is contained in:
Larry Shaffer 2016-12-29 11:40:26 -07:00
parent 69e9d99c49
commit 1d58e532b8

View File

@ -531,10 +531,10 @@ class Editor(QsciScintilla):
try:
## set creationflags for running command without shell window
if sys.platform.startswith('win'):
p = subprocess.Popen(['python', filename], shell=False, stdin=subprocess.PIPE,
p = subprocess.Popen(['python3', filename], shell=False, stdin=subprocess.PIPE,
stderr=subprocess.PIPE, stdout=subprocess.PIPE, creationflags=0x08000000)
else:
p = subprocess.Popen(['python', filename], shell=False, stdin=subprocess.PIPE,
p = subprocess.Popen(['python3', filename], shell=False, stdin=subprocess.PIPE,
stderr=subprocess.PIPE, stdout=subprocess.PIPE)
out, _traceback = p.communicate()