python-module-mysql/test_conf.py
2019-12-03 12:12:41 +01:00

9 lines
162 B
Python

#!/usr/bin/env python3
import configparser as cp
config = cp.ConfigParser()
config.read('manage_sql/conf.ini')
valeur = config.get('sql', 'host')
print(valeur)