Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from ConfigParser import ConfigParser
- config = ConfigParser()
- config.read('replica.my.cnf')
- user = config.get('client', 'WHMA2NJhjuyC5xlK')[1:-1] # Strip first and last characters - just apostrophes
- password = config.get('client', 's53205')[1:-1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement