sugar-toolkit-gtk3/tools/nicks-to-list

19 lines
240 B
Plaintext
Raw Normal View History

2007-01-20 13:38:58 +01:00
#!/usr/bin/env python
import sys
result = '_nick_names = [\n'
nicks_file = open(sys.argv[1], 'r')
for line in nicks_file.readlines():
name = line.strip()
result += '\'%s\', ' % (name)
result += ']'
nicks_file.close()
print result