Top "Environment-variables" questions

Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer.

How to test code dependent on environment variables using JUnit?

I have a piece of Java code which uses an environment variable and the behaviour of the code depends on …

java unit-testing testing junit environment-variables
Gradle finds wrong JAVA_HOME even though it's correctly set

When trying to run gradle, I get the following error: # gradle ERROR: JAVA_HOME is set to an invalid directory: /…

java linux gradle environment-variables
Difference between os.getenv and os.environ.get

Is there any difference at all between both approaches? >>> os.getenv('TERM') 'xterm' >>> os.…

python environment-variables python-os
How to change value of process.env.PORT in node.js?

I'd like to change the value of process.env.PORT, how can I do this? I'm running Ubuntu 12.04.

node.js environment-variables
Global environment variables in a shell script

How to set a global environment variable in a bash script? If I do stuff like #!/bin/bash FOO=bar ...…

shell scripting environment-variables
Why does sudo change the PATH?

This is the PATH variable without sudo: $ echo 'echo $PATH' | sh /opt/local/ruby/bin:/usr/bin:/bin This is …

path environment-variables sudo
Tensorflow set CUDA_VISIBLE_DEVICES within jupyter

I have two GPUs and would like to run two different networks via ipynb simultaneously, however the first notebook always …

python environment-variables tensorflow
Set a persistent environment variable from cmd.exe

I have to set environment variables on different windows machines, but I don't want to be bothered changing them manually …

windows batch-file environment-variables cmd
In Python script, how do I set PYTHONPATH?

I know how to set it in my /etc/profile and in my environment variables. But what if I want …

python linux unix environment-variables
How do I setup the dotenv file in Node.js?

I am trying to use the dotenv NPM package and it is not working for me. I have a file …

node.js environment-variables