OpendTect-6_4
6.4
|
Public Member Functions | |
PythonAccess () | |
~PythonAccess () | |
uiRetVal | isUsable (bool force=false, const char *scriptstr=nullptr, const char *scriptexpectedout=nullptr) const |
bool | execute (const OS::MachineCommand &, bool wait4finish=true) const |
bool | execute (const OS::MachineCommand &, BufferString &stdoutstr, BufferString *stderrstr, uiString *errmsg=nullptr) const |
bool | execute (const OS::MachineCommand &, const OS::CommandExecPars &, int *pid=nullptr, uiString *errmsg=nullptr) const |
BufferString | lastOutput (bool stderrout, uiString *launchermsg) const |
BufferString | pyVersion () const |
uiString | pySummary () const |
bool | isModuleUsable (const char *nm) const |
struct(Basic) ModuleInfo uiRetVal | verifyEnvironment (const char *piname) |
BufferString | getPacmanExecNm () const |
uiRetVal | updateModuleInfo (const char *cmd="pip list") |
uiRetVal | hasModule (const char *modname, const char *minversion=0) const |
uiRetVal | getModules (ManagedObjectSet< ModuleInfo > &) |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
void | detachCB (NotifierAccess &, const CallBack &) |
void | detachCB (NotifierAccess *notif, const CallBack &cb) |
bool | isNotifierAttached (NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
Static Public Member Functions | |
static bool | hasInternalEnvironment (bool allowuserdef=true) |
static bool | validInternalEnvironment (const FilePath &) |
static const char * | sPythonExecNm (bool v3=false, bool v2=false) |
static const char * | sKeyPythonSrc () |
static const char * | sKeyEnviron () |
Public Attributes | |
Notifier< PythonAccess > | envChange |
Private Member Functions | |
bool | isUsable (bool force=false, const char *scriptstr=nullptr, const char *scriptexpectedout=nullptr) |
bool | isEnvUsable (const FilePath *pythonenvfp, const char *envnm, const char *scriptstr, const char *scriptexpectedout) |
bool | doExecute (const OS::MachineCommand &, const OS::CommandExecPars *, int *pid, const FilePath *activatefp, const char *envnm) const |
bool | retrievePythonVersionStr () |
void | envChangeCB (CallBacker *) |
Static Private Member Functions | |
static uiString | tr (const char *text, const char *disambiguation=0, int pluralnr=-1) |
static uiString | legacyTr (const char *text, const char *disambiguation=0, int pluralnr=-1) |
static bool | getInternalEnvironmentLocation (FilePath &, bool userdef) |
static FilePath | getInternalEnvPath (bool userdef) |
static bool | getSortedVirtualEnvironmentLoc (ObjectSet< FilePath > &, BufferStringSet &envnms, const BufferString *envnm=nullptr, const FilePath *extroot=nullptr) |
static FilePath * | getCommand (OS::MachineCommand &, bool background, const FilePath *activatefp, const char *envnm) |
static OS::CommandLauncher * | getLauncher (const OS::MachineCommand &, bool background, const FilePath *activatefp, const char *envnm, FilePath &scriptfp) |
static void | getPIDFromFile (const char *pidfnm, int *pid) |
static FilePath * | getActivateScript (const FilePath &root) |
Private Attributes | |
bool | istested_ = false |
bool | isusable_ = false |
FilePath * | activatefp_ = nullptr |
BufferString | virtenvnm_ |
PtrMan< OS::CommandLauncher > | cl_ |
BufferString | laststdout_ |
BufferString | laststderr_ |
uiString | msg_ |
BufferString | pythversion_ |
ManagedObjectSet< ModuleInfo > | moduleinfos_ |
Friends | |
class | ::uiPythonSettings |
Additional Inherited Members | |
Protected Member Functions inherited from CallBacker | |
void | detachAllNotifiers () |
Call from the destructor of your inherited object. More... | |
OD::PythonAccess::PythonAccess | ( | ) |
OD::PythonAccess::~PythonAccess | ( | ) |
|
private |
|
private |
bool OD::PythonAccess::execute | ( | const OS::MachineCommand & | , |
bool | wait4finish = true |
||
) | const |
bool OD::PythonAccess::execute | ( | const OS::MachineCommand & | , |
BufferString & | stdoutstr, | ||
BufferString * | stderrstr, | ||
uiString * | errmsg = nullptr |
||
) | const |
bool OD::PythonAccess::execute | ( | const OS::MachineCommand & | , |
const OS::CommandExecPars & | , | ||
int * | pid = nullptr , |
||
uiString * | errmsg = nullptr |
||
) | const |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
uiRetVal OD::PythonAccess::getModules | ( | ManagedObjectSet< ModuleInfo > & | ) |
BufferString OD::PythonAccess::getPacmanExecNm | ( | ) | const |
|
staticprivate |
|
staticprivate |
|
static |
uiRetVal OD::PythonAccess::hasModule | ( | const char * | modname, |
const char * | minversion = 0 |
||
) | const |
|
private |
bool OD::PythonAccess::isModuleUsable | ( | const char * | nm | ) | const |
uiRetVal OD::PythonAccess::isUsable | ( | bool | force = false , |
const char * | scriptstr = nullptr , |
||
const char * | scriptexpectedout = nullptr |
||
) | const |
|
private |
BufferString OD::PythonAccess::lastOutput | ( | bool | stderrout, |
uiString * | launchermsg | ||
) | const |
|
inlinestaticprivate |
uiString OD::PythonAccess::pySummary | ( | ) | const |
BufferString OD::PythonAccess::pyVersion | ( | ) | const |
|
private |
|
static |
|
static |
|
static |
|
inlinestaticprivate |
uiRetVal OD::PythonAccess::updateModuleInfo | ( | const char * | cmd = "pip list" | ) |
|
static |
|
friend |
|
private |
|
mutableprivate |
Notifier<PythonAccess> OD::PythonAccess::envChange |
|
private |
|
private |
|
mutableprivate |
|
mutableprivate |
|
private |
|
mutableprivate |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019