Added change names to do required changes in names such that we get the chapter names beyond 10 in proper list
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/SEESenv/scripts/changenames.py Mon Mar 01 15:23:42 2010 +0530
@@ -0,0 +1,15 @@
+import glob
+import subprocess
+import re
+import time
+
+names= glob.glob('/home/hg/repos/SEES-hacks/temp/ch1*.html')
+for name in names:
+ reg_obj=re.compile('/home/hg/repos/SEES-hacks/temp/ch1[0-9].*.html')
+ if (reg_obj.match(name)):
+ changed_name=re.sub('ch1','chn1',name)
+ else:
+ changed_name=name
+ command="cp %s %s" %(name ,changed_name)
+ subprocess.Popen(command,shell=True)
+ time.sleep(2)
--- a/SEESenv/scripts/finalhtml.py Sun Feb 28 22:02:15 2010 +0530
+++ b/SEESenv/scripts/finalhtml.py Mon Mar 01 15:23:42 2010 +0530
@@ -36,9 +36,7 @@
soup=finalchanges(file_name,file_obj.read())
time.sleep(1)
file_obj=open(file_name,'w')
- file_obj.write(soup.prettify())
-
-
+ print >>file_obj ,soup