mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
- bugfix: fomod installer didn't find fomod files in nested folder - bugfix: python proxy will now not even try to initialize python if python_dir contains no python. This is necessary because the python interpreter crashes the application if the path is invalid
30 lines
676 B
C++
30 lines
676 B
C++
#ifndef PYTHONRUNNER_H
|
|
#define PYTHONRUNNER_H
|
|
|
|
#include <QString>
|
|
#include <QObject>
|
|
#include <map>
|
|
#include <dllimport.h>
|
|
#include <imoinfo.h>
|
|
|
|
|
|
class IPythonRunner {
|
|
public:
|
|
virtual QObject *instantiate(const QString &pluginName) = 0;
|
|
virtual bool isPythonInstalled() const = 0;
|
|
virtual bool isPythonVersionSupported() const = 0;
|
|
};
|
|
|
|
|
|
#ifdef PYTHONRUNNER_LIBRARY
|
|
#define PYDLLEXPORT Q_DECL_EXPORT
|
|
#else // PYTHONRUNNER_LIBRARY
|
|
#define PYDLLEXPORT Q_DECL_IMPORT
|
|
#endif // PYTHONRUNNER_LIBRARY
|
|
|
|
extern "C" PYDLLEXPORT IPythonRunner *CreatePythonRunner(const MOBase::IOrganizer *moInfo, const QString &pythonDir);
|
|
|
|
|
|
|
|
#endif // PYTHONRUNNER_H
|