mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[pyqgis-console] Use python3 for editor subprocess calls
This commit is contained in:
parent
69e9d99c49
commit
1d58e532b8
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user