[PYTHON] How to use a file other than .fabricrc as a configuration file

You can use files other than .fabricrc by doing the following. (However, you cannot use lists)

config.txt

dummy = hogehoge

fabfile.py

from fabric.main import load_settings

env.update(load_settings('config.txt'))

print env.dummy

Recommended Posts

How to use a file other than .fabricrc as a configuration file
How to use Fujifilm X-T3 as a webcam on Ubuntu 20.04
How to use cuML SVC as a Gridsearch CV classifier
How to extract other than a specific index with Numpy
How to create a config file
How to make a command to read the configuration file with pyramid
[Python] How to store a csv file as one-dimensional array data
[Python] How to get a value with a key other than value with Enum
How to read a CSV file with Python 2/3
A simple example of how to use ArgumentParser
How to create a JSON file in Python
How to read a file in a different directory
How to use xml.etree.ElementTree
How to use Python-shell
How to use tf.data
How to use virtualenv
How to use Seaboan
How to use image-match
How to use Pandas 2
How to use Virtualenv
How to use pytest_report_header
How to use Bio.Phylo
How to use SymPy
How to use x-means
How to use WikiExtractor.py
How to use IPython
How to use virtualenv
How to use Matplotlib
How to use iptables
How to use numpy
How to use TokyoTechFes2015
How to use venv
How to use dictionary {}
How to use Pyenv
How to use python-kabusapi
How to use return
How to use dotenv
How to use pyenv-virtualenv
How to use Go.mod
How to use imutils
How to use import
A memo of how to use AIST supercomputer ABCI
A memorandum on how to use keras.preprocessing.image in Keras
How to use TensorFlow on GPUs less than Titan
How to use template engine in pyramid 1 file application
How to display DataFrame as a table in Markdown
How to turn a .py file into an .exe file
[Tips] How to use iPhone as webcam on Linux
[Python] I want to add a static directory with Flask [I want to use something other than static]
How to use NUITKA-Utilities hinted-compilation to easily create an executable file from a Python script
How to use python multiprocessing (continued 3) apply_async in class with Pool as a member
How to use GitHub on a multi-person server without a password
How to use Qt Designer
How to use search sorted
[gensim] How to use Doc2Vec
python3: How to use bottle (2)
Understand how to use django-filter
How to switch the configuration file to be read by Python
How to run a Python file at a Windows 10 command prompt
How to import NoteBook as a module in Jupyter (IPython)
[Python] How to use list 1