Skip to content
Permalink
Browse files

[pyqgis-console] Use python3 for editor subprocess calls

  • Loading branch information
dakcarto committed Dec 29, 2016
1 parent 69e9d99 commit 1d58e532b838ad48520fb95d2f40b6a00beaeb04
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/console/console_editor.py
@@ -531,10 +531,10 @@ def _runSubProcess(self, filename, tmp=False):
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()

0 comments on commit 1d58e53

Please sign in to comment.
You can’t perform that action at this time.