Jan-25-2020, 06:22 AM
In the future it would be nice to include link to github repo - it helps a lot
https://github.com/levensailor/ciscoaxl/...xamples.py
python-dotenv reads that file and exports the provided settings as Environmental variables
then look at the examples.py
check python-dotenv docs for specific instructions for .env file format
https://github.com/theskumar/python-dotenv
https://github.com/levensailor/ciscoaxl/...xamples.py
.env
file is used to provide application settings via Environmental variables.python-dotenv reads that file and exports the provided settings as Environmental variables
then look at the examples.py
dotenv_path = os.path.join(os.path.dirname(__file__), '.env') read_dotenv(dotenv_path) cucm = os.getenv('cucm') username = os.getenv('username') password = os.getenv('password') version = os.getenv('version')as you can see, the scripts reads cucm, username, password and version from the environment variables.
check python-dotenv docs for specific instructions for .env file format
https://github.com/theskumar/python-dotenv
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs