mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 10:46:15 +03:00
20 lines
376 B
Text
20 lines
376 B
Text
|
/*
|
||
|
-----BEGIN QCMOD-----
|
||
|
name: python
|
||
|
-----END QCMOD-----
|
||
|
*/
|
||
|
class qc_python : public ConfObj
|
||
|
{
|
||
|
public:
|
||
|
qc_python(Conf *c) : ConfObj(c) {}
|
||
|
QString name() const { return "python >= 2.3"; }
|
||
|
QString shortname() const { return "python"; }
|
||
|
bool exec(){
|
||
|
int r = conf->doCommand("python testpython.py");
|
||
|
if(r == 0)
|
||
|
return true;
|
||
|
else
|
||
|
return false;
|
||
|
}
|
||
|
};
|