2019-04-26 12:37:15 +02:00
|
|
|
print('starting 2')
|
2019-04-26 12:43:42 +02:00
|
|
|
import sys
|
2019-04-26 12:44:26 +02:00
|
|
|
from importlib import reload
|
2019-04-26 12:56:34 +02:00
|
|
|
import os
|
2019-04-26 12:38:17 +02:00
|
|
|
|
2019-04-26 12:43:42 +02:00
|
|
|
reload(sys)
|
2019-04-26 12:54:00 +02:00
|
|
|
# sys.setdefaultencoding('utf8')
|
2019-04-26 12:58:30 +02:00
|
|
|
num_lines = os.popen('wc -l $1 ./Infra/wikiniews_results.tsv').read()
|
2019-04-26 12:56:00 +02:00
|
|
|
# num_lines = sum(1 for line in open('./Infra/wikiniews_results.tsv'))
|
2019-04-26 11:25:37 +02:00
|
|
|
|
2019-04-26 12:36:26 +02:00
|
|
|
print('lines number')
|
|
|
|
print(num_lines)
|
2019-04-26 11:46:32 +02:00
|
|
|
file = open('num_lines.txt', 'w')
|
2019-04-26 11:47:36 +02:00
|
|
|
file.write(str(num_lines))
|
2019-04-26 11:29:09 +02:00
|
|
|
file.close()
|