How environment variables work

The environment used by the compiler and executables launched from Project Manager is made up of environment variables set in a priority order.

Environment variable defined values have an order of priority (high to low):

  1. The environment defined on the node itself (Genero variables and User variables). This has the highest priority.

  2. The environment of the node's parents (ancestors).

  3. The environment of the node's dependencies.

  4. Environment variables defined in the current language.

  5. Environment variables defined in Environment sets.

  6. System environment variables, which have the lowest priority.

Override System environment variables (5), or environment variables defined in a Genero Studio configuration (4), by redefining them in Project Manager.

For example: PATH=/my/new/path

The System environment variables or Genero Studio Configuration variables in the Project Manager User Variable definitions can be reused.

For example: PATH=$(PATH);/my/new/path

Use the semicolon to separate directories in a list, and the slash (/) as the separator in a path, for portability of projects across operating systems.