BASIS  version 1.2.3 (revision 2104)
Variables
Python Utilities
BASIS Utilities

Auxiliary implementations for use in Python scripts. More...

+ Collaboration diagram for Python Utilities:

Variables

 BASIS_PYTHON_UTILITIES
 Include BASIS utilities for Python.
 PROJECT_NAMESPACE_PYTHON
 CMake variable of Python package name of project.

Detailed Description

Auxiliary implementations for use in Python scripts.


Variable Documentation

Include BASIS utilities for Python.

The substituted Python code appends the root directory of the build or installed Python modules to the search path and then imports the 'basis' module of this project. Note that every BASIS project has its own 'basis' module, which belong to different packages, however.

Example:

 #! /usr/bin/env python
 @BASIS_PYTHON_UTILITIES@
 ...

Definition at line 17 of file UtilitiesTools.cmake.

CMake variable of Python package name of project.

The Python package name of a BASIS project is made up of its name in lower case only as well as the package name of the project it belongs to.

Example:

 import sbia.basis

Definition at line 191 of file ProjectSettings.cmake.