SEESenv/scripts/myrst2xml.py
changeset 38 194e1bdfd1cb
parent 36 a542eb905ced
child 39 bc65d8802897
--- a/SEESenv/scripts/myrst2xml.py	Sun Feb 28 20:06:53 2010 +0530
+++ b/SEESenv/scripts/myrst2xml.py	Sun Feb 28 21:41:27 2010 +0530
@@ -36,12 +36,14 @@
     xml_file=tmp_folder+name+'.xml'
     print xml_file   
 #    a=open(xml_file,'w')
-    publish_file(source_path=file_name, destination_path=xml_file,parser_name='restructuredtext', writer_name='xml') 
-    
+    try:    
+        publish_file(source_path=file_name, destination_path=xml_file,parser_name='restructuredtext', writer_name='xml') 
+    except :
+        pass
 def walk(repo):
     global chapterno
 #    mainfolder='/home/hg/repos/sttp/'    
-    for readline in open('/home/hg/repos/SEES-hacks/SEESenv/scripts/index.config','r').readlines():
+    for readline in open('/home/hg/repos/SEES-hacks/index.config','r').readlines():
         chapterno+=1		
         filename=repo+readline
         convert2xml(filename)