Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit c48ee6d5 authored by Laurent Montel's avatar Laurent Montel 😁

Store path

parent 183133fe
......@@ -21,10 +21,10 @@
#include <QStandardPaths>
GrammalecteUtil::GrammalecteUtil()
{
mPythonPath = QStandardPaths::findExecutable(QStringLiteral("python3"));
}
QString GrammalecteUtil::pythonPath() const
{
return QStandardPaths::findExecutable(QStringLiteral("python3"));
return mPythonPath;
}
......@@ -29,6 +29,8 @@ public:
GrammalecteUtil();
QString pythonPath() const;
private:
QString mPythonPath;
};
#endif // GRAMMALECTEUTIL_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment