1
0
Fork 0
mirror of https://github.com/marty-oehme/scripts.git synced 2024-12-22 07:58:08 +00:00

Update merge-notes.qml

This commit is contained in:
Maboroshy 2017-08-18 00:24:54 +03:00 committed by GitHub
parent de4149b965
commit a57921a0f2

View file

@ -9,9 +9,9 @@ import QOwnNotesTypes 1.0
Script { Script {
/// functions to find correct Python 3 interpreter command and set it as default /// functions to find correct Python 3 interpreter command and set it as default
function getPyCommand() { function getPyCommand() {
if (script.startSynchronousProcess('pythonw', '-V', '').toString().indexOf('Python 3') != '-1') {return 'pythonw'}
if (script.startSynchronousProcess('python3', '-V', '').toString().indexOf('Python 3') != '-1') {return 'python3'} if (script.startSynchronousProcess('python3', '-V', '').toString().indexOf('Python 3') != '-1') {return 'python3'}
if (script.startSynchronousProcess('python', '-V', '').toString().indexOf('Python 3') != '-1') {return 'python'} if (script.startSynchronousProcess('python', '-V', '').toString().indexOf('Python 3') != '-1') {return 'python'}
if (script.startSynchronousProcess('py', '-V', '').toString().indexOf('Python 3') != '-1') {return 'py'}
return '' return ''
} }