Skip to content Skip to sidebar Skip to footer

Send Bash Environment Variable Back To Python Fabric

I am attempting to pass a bash environment variable back into my fabric function like this:- from fabric.api import env def env_localhost(): 'All the environment variables rel

Solution 1:

Do it like this:

import osos.getenv("PATH")

Solution 2:

Also:

import osos.environ['PROJECT_HOME']

Post a Comment for "Send Bash Environment Variable Back To Python Fabric"