19 lines
240 B
Python
Executable File
19 lines
240 B
Python
Executable File
#!/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
|
|
|