# env¶

Runs shell commands in the Gaffer environment (after the Gaffer wrapper has been run), so they have access to all the libraries and modules available within Gaffer.

This is useful for running the binary utilities supplied with Gaffer, or for running python scripts which need to import Gaffer’s python modules.

Usage :

gaffer env [name=value ...] [utility [argument ...]]


Examples :

gaffer env maketx input.exr
gaffer env python script.py


## -help¶

Prints names and descriptions of each parameter rather than running the application.

## -threads¶

The maximum number of threads used for computation. The default value of zero causes the number of threads to be chosen automatically based on the available hardware.

## -profileFileName¶

If this is specified, then the application is run using the cProfile profiling module, and the results saved to the file for later examination.

## -arguments¶

A series of optional name=value environment variable specifications, followed by the command to execute.