Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
8a736c34
Commit
8a736c34
authored
Mar 21, 2020
by
Vincent Pinon
Browse files
Check for python before calling it, avoids Windows offering to install it
parent
5625be72
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/utils/otioconvertions.cpp
View file @
8a736c34
...
...
@@ -26,6 +26,7 @@
#include
"doc/kdenlivedoc.h"
#include
"project/projectmanager.h"
#include
<QStandardPaths>
#include
<KMessageBox>
OtioConvertions
::
OtioConvertions
()
...
...
@@ -34,6 +35,11 @@ OtioConvertions::OtioConvertions()
void
OtioConvertions
::
getOtioConverters
()
{
if
(
QStandardPaths
::
findExecutable
(
QStringLiteral
(
"otioconvert"
)).
isEmpty
()
||
QStandardPaths
::
findExecutable
(
QStringLiteral
(
"python3"
)).
isEmpty
())
{
qInfo
(
"otioconvert or python3 not available, project import/export not enabled"
);
return
;
}
connect
(
&
m_otioProcess
,
static_cast
<
void
(
QProcess
::*
)(
int
,
QProcess
::
ExitStatus
)
>
(
&
QProcess
::
finished
),
this
,
&
OtioConvertions
::
slotGotOtioConverters
);
m_otioProcess
.
start
(
QStringLiteral
(
"python3"
));
m_otioProcess
.
write
(
QStringLiteral
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment