Created
September 14, 2019 18:11
-
-
Save RakeshChouhan/8e6a5597533484a2039fbed1cf10337e to your computer and use it in GitHub Desktop.
Register config file with the abbreviation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import keyboard as k | |
f = open('config.txt','r') | |
records = f.read() | |
recs = records.split('\n') | |
for i in recs: | |
if(i != ''): | |
data = i.split(':') | |
k.add_abbreviation(data[0],data[1]) | |
print(data[0]) | |
f.close() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@:myemail.com | |
@help:stackoverflow.com | |
@fb:facebook.com | |
@lkd:linkedin.com | |
@ut:youtube.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment