Skip to content

Commit

Permalink
Merge pull request #17 from ArkinSolomon/develop
Browse files Browse the repository at this point in the history
Add custom file environment variables
  • Loading branch information
ArkinSolomon authored Feb 6, 2023
2 parents 1a874d7 + 0ebc397 commit cce5e08
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@ public void defineEnvVar(String identifier, double value) {
envVariables.put("@" + identifier, new Value(DataType.NUMBER, value, false));
}

/**
* Define an environment variable of type path for the interpreter.
*
* @param identifier The identifier for the variable, without the "@" prefix.
* @param value The value of the path.
*/
public void defineEnvVar(String identifier, File value) {
envVariables.put("@" + identifier, new Value(DataType.PATH, value, false));
}

/**
* Override a default function, or define one.
*
Expand Down

0 comments on commit cce5e08

Please sign in to comment.