I want to store my configuration in db.ini
file. I have seen this tutorial which explains the db.ini
file should be saved at: /usr/bin/env
and it can be accessed as below:
#!/usr/bin/env python3
import configparser
config = configparser.ConfigParser()
config.read('db.ini')
I am working on Windows machine, and not sure where should I copy my db.ini
file?
I just don't want the config file to be checked-in to source control (git) as it contains sensitive information.
Note: My development environment is Windows and Production Environment is Linux. I need a configuration file to store my credentials.