Nov-27-2018, 05:16 AM
In my python script I have way too many default variables / parameter options. What is the best practice for moving these default variables into a config file that the users can update? This config file will be global variables that my main script will read and apply each time it's run.
config file:
x = 1
y = 2
main script:
import config file
sum = x + y
Please comment with the best practices for dealing with updateable config files for variables so the default values arent used each time. Thanks.
config file:
x = 1
y = 2
main script:
import config file
sum = x + y
Please comment with the best practices for dealing with updateable config files for variables so the default values arent used each time. Thanks.