diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-29 18:49:02 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-29 18:49:02 -0500 |
commit | 2d9499273f3f799b65ebe06c97786aa68ba797c7 (patch) | |
tree | c4455cb36cbeacffcc07828ebc7e1f92b6628f9d /pts-core/functions/pts-functions_modules.php | |
parent | c7356bebfd9ade46678a591b6f53f06b8c0b7261 (diff) | |
download | phoronix-test-suite-upstream-2d9499273f3f799b65ebe06c97786aa68ba797c7.tar.gz phoronix-test-suite-upstream-2d9499273f3f799b65ebe06c97786aa68ba797c7.tar.xz phoronix-test-suite-upstream-2d9499273f3f799b65ebe06c97786aa68ba797c7.zip |
pts-core: Ensure all PTS options extend the pts_option_interface
Diffstat (limited to 'pts-core/functions/pts-functions_modules.php')
-rw-r--r-- | pts-core/functions/pts-functions_modules.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_modules.php b/pts-core/functions/pts-functions_modules.php index 18384b8..b64a87f 100644 --- a/pts-core/functions/pts-functions_modules.php +++ b/pts-core/functions/pts-functions_modules.php @@ -378,5 +378,13 @@ function pts_module_activity($process, $value = null) return $return; } +function pts_set_environment_variable($name, $value) +{ + // Sets an environmental variable + if(getenv($name) == false) + { + putenv($name . "=" . $value); + } +} ?> |