sugar-toolkit-gtk3/tools/nicks-to-list
2006-10-09 18:03:35 +02:00

19 lines
236 B
Python
Executable File

#!/usr/bin/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