MeVisLab Scripting Reference
|
#include <mlabPackageManager.h>
Inherits QObject.
Public Slots | |
Package Manager Script Access | |
| |
QStringList | getBinPaths () |
QStringList | getLibPaths () |
QStringList | getAdditionalPythonPaths (PythonPathType pathType=PythonPathType::LocalAndInstalled) const |
QObjectList | packages () |
QObjectList | packagesByGroup (const QString &group) |
MLABPackage * | packageByIdentifier (const QString &packageName) |
QStringList | findSharedLibrary (const QString &name) |
QStringList | findExecutable (const QString &name) |
QString | getMeVisPythonExecutable (bool preferReleaseMode=true) |
QString | getPathInPackage (const QString &packageIdentifier, const QString &pathToAppend) |
MLABPackage * | findPackageContainingPath (const QString &absPath, QString *relativePath=nullptr) |
QStringList | findPackageIdentifierAndRelativePath (const QString &absPath) |
QVariantList | checkForMultipleCopiesOfSharedLibraries () |
bool | isPackagePathAlreadyPresent (const QString &path) |
MLABPackage * | internalAddDummyPackage (const QString &group, const QString &name, const QString &path) |
void | internalRemoveDummyPackage (MLABPackage *package) |
QStringList | findProjectSubDirectoriesInPackage (MLABPackage *package, const QString &subDirectoryName, bool inZipFile=false) const |
Manages MeVisLab module packages.
|
slot |
Returns whether there are multiple copies of shared libraries which are returned as QVariantList of QStringLists.
|
slot |
Returns the path(s) to the executable if it exists, an empty list otherwise (where the name is just the name, without debug postfix and platform ending).
On Mac OS X it also looks for application bundles and if found returns the main executable of the bundle.
|
slot |
Searches the packages and returns the package that contains the given path.
absPath | the absolute path |
relativePath | will be the path from the package to the contained path, or untouched if no package was found. |
|
slot |
Searches the packages and returns the package identifier and the relative path into the package (or an empty list).
|
slot |
Searches for project sub directories with the given name in the project directory.
The search is recursive and the found project sub directories are returned.
|
slot |
Returns the path(s) to the shared library(s) if it exists, an empty list otherwise (where the library name is just the name, without debug postfix and platform ending).
|
slot |
Returns the list of additional Python paths contributed by the packages (.../Modules/Scripts/python and .../site-packages)
|
slot |
Returns the binary paths that need to be set.
|
slot |
Returns the library paths that need to be set.
|
slot |
Return the MeVisPython executable at the platform specific location in MeVis/ThirdParty.
preferReleaseMode | if this is not set, the executable mode will try to match that of the calling MeVisLab instance, otherwise it will prefer the release mode executable and fall back to the debug version only if the release version does not exist. |
|
slot |
Returns the given path inside of the given package.
|
slot |
Internal method for adding a dummy package, ONLY use this for testing purposes.
|
slot |
Internal method for removing a dummy package, ONLY use this for testing purposes.
|
slot |
Returns whether the given path is already part of the scanned package paths or a subdirectory of one of the package paths.
|
slot |
Returns the specified package info.
|
slot |
Returns the list of packages as QObjectList, since QSA does not support QList<MLABPackage>.
|
slot |
Returns the list of packages as QObjectList, since QSA does not support QList<MLABPackage>.