Skip to content

Commit

Permalink
[pyqgis-console] Use python3 for editor subprocess calls
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Dec 29, 2016
1 parent 69e9d99 commit 1d58e53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/console/console_editor.py
Expand Up @@ -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()

Expand Down

0 comments on commit 1d58e53

Please sign in to comment.