Skip to content

Commit 1d58e53

Browse files
committedDec 29, 2016
[pyqgis-console] Use python3 for editor subprocess calls
1 parent 69e9d99 commit 1d58e53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/console/console_editor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,10 +531,10 @@ def _runSubProcess(self, filename, tmp=False):
531531
try:
532532
## set creationflags for running command without shell window
533533
if sys.platform.startswith('win'):
534-
p = subprocess.Popen(['python', filename], shell=False, stdin=subprocess.PIPE,
534+
p = subprocess.Popen(['python3', filename], shell=False, stdin=subprocess.PIPE,
535535
stderr=subprocess.PIPE, stdout=subprocess.PIPE, creationflags=0x08000000)
536536
else:
537-
p = subprocess.Popen(['python', filename], shell=False, stdin=subprocess.PIPE,
537+
p = subprocess.Popen(['python3', filename], shell=False, stdin=subprocess.PIPE,
538538
stderr=subprocess.PIPE, stdout=subprocess.PIPE)
539539
out, _traceback = p.communicate()
540540

0 commit comments

Comments
 (0)
Please sign in to comment.