equal
deleted
inserted
replaced
13 import pkg_resources |
13 import pkg_resources |
14 import time |
14 import time |
15 from docutils.core import publish_file |
15 from docutils.core import publish_file |
16 import os |
16 import os |
17 chapterno=0 |
17 chapterno=0 |
18 tmp_folder="/home/hg/repos/SEES-hacks/" |
18 tmp_folder="/home/hg/repos/SEES-hacks/temp/" |
19 |
19 |
20 |
20 |
21 |
21 |
22 |
22 |
23 |
23 |
35 xml_file=name+'.xml' |
35 xml_file=name+'.xml' |
36 a=open(xml_file,'w') |
36 a=open(xml_file,'w') |
37 publish_file(source_path=file, destination_path=xml_file,parser_name='restructuredtext', writer_name='xml') |
37 publish_file(source_path=file, destination_path=xml_file,parser_name='restructuredtext', writer_name='xml') |
38 def walk(repo): |
38 def walk(repo): |
39 global chapterno |
39 global chapterno |
40 mainfolder='/home/hg/repos/sttp/' |
40 # mainfolder='/home/hg/repos/sttp/' |
41 for readline in open('index.config','r').readlines(): |
41 for readline in open('index.config','r').readlines(): |
42 chapterno+=1 |
42 chapterno+=1 |
43 filename=mainfolder+readline |
43 filename=repo+readline |
44 convert2xml(filename) |
44 convert2xml(filename) |
45 |
45 |
46 |
46 |
47 |
47 |
48 |
48 |
49 |
49 |
50 if __name__=='__main__': |
50 if __name__=='__main__': |
51 repo='/home/amit/sphinxvirt/review/' |
51 repo='/home/hg/repos/sttp/' |
52 walk(repo) |
52 walk(repo) |
53 # convert(1,2,3) |
53 # convert(1,2,3) |
54 |
54 |
55 |
55 |
56 |
56 |