- buster 4.4.0+dfsg-8
PEGASUS-CONFIG(1) | Pegasus Manual | PEGASUS-CONFIG(1) |
NAME¶
pegasus-config - The authority for where parts of the Pegasus system exists on the filesystem. pegasus-config can be used to find libraries such as the DAX generators.SYNOPSIS¶
pegasus-config [-h] [--help] [-V] [--version] [--noeoln] [--perl-dump] [--perl-hash] [--python-dump] [--sh-dump] [--bin] [--conf] [--java] [--perl] [--python] [--python-externals] [--schema] [--classpath] [--local-site] [--full-local]
DESCRIPTION¶
pegasus-config is used to find locations of Pegasus system components. The tool is used internally in Pegasus and by users who need to find paths for DAX generator libraries and schemas.OPTIONS¶
-h, --help-V, --version
--perl-dump
--perl-hash
--python-dump
--sh-dump
--bin
--conf
--java
--perl
--python
--python-externals
--schema
--classpath
--noeoln
--local-site [d]
--full-local [d]
EXAMPLE¶
To set the PYTHONPATH variable in your shell for using the Python DAX API:export PYTHONPATH=`pegasus-config --python`
To set the same path inside Python:
config = subprocess.Popen("pegasus-config --python-dump", stdout=subprocess.PIPE, shell=True).communicate()[0] exec config
To set the PERL5LIB variable in your shell for using the Perl DAX API:
export PERL5LIB=`pegasus-config --perl`
To set the same path inside Perl:
eval `pegasus-config --perl-dump`; die("Unable to eval pegasus-config output: $@") if $@;
will set variables a number of lexically local-scoped my variables with prefix "pegasus_" and expand Perl’s search path for this script.
Alternatively, you can fail early and collect all Pegasus-related variables into a single global %pegasus variable for convenience:
BEGIN { eval `pegasus-config --perl-hash`; die("Unable to eval pegasus-config output: $@") if $@; }
AUTHOR¶
Pegasus Team http://pegasus.isi.edu11/09/2018 | Pegasus 4.4.0 |