Special Variables¶
The plugin has access to some special parameters which are setup for the user running the plugin. These are:
Name | Description |
---|---|
$USER_BASE_DIR |
Absolute path to the central directory for this user in the evaluation system. |
$USER_OUTPUT_DIR |
Absolute path to where the output data for this user is stored. |
$USER_PLOTS_DIR |
Absolute path to where the plots for this user is stored. |
$USER_CACHE_DIR |
Absolute path to where the cached data for this user is stored. |
$SYSTEM_DATE |
Current date in the form YYYYMMDD (e.g. 20120130 ). |
$SYSTEM_DATETIME |
Current date in the form YYYYMMDD_HHmmSS (e.g. 20120130_101123 ). |
$SYSTEM_TIMESTAMP |
Milliseconds since epoch (i.e. a new number every millisecond, e.g. 1358929581838 ). |
$SYSTEM_RANDOM_UUID |
A random UUID string (e.g. 912cca21-6364-4f46-9b03-4263410c9899 ). |
These can be used in the plugin like this:
#[...] __config_metadict__ = metadict(compact_creation = True, output_file = '$USER_OUTPUT_DIR/${input_file}', output_plot = '$USER_PLOTS_DIR/${input_file}', work = '$USER_CACHE_DIR', input_file = (None, dict(mandatory=True, type=str, help='The processed file')) )