In general, there is a code on the bash, it is necessary to rewrite it on the python.
On the bash, using the source command, variables are loaded, which I use later. How would this be implemented in Python so that you would not have to rewrite already prepared files with variables for bash?
An example of a file from which variables are loaded:
VERSION=1.0 COMMENT_OK="asd" COMMENT_FAIL="asd" COMMAND="grep asd" EXPIRE=123