SEESenv/scripts/docbook2html.py
changeset 32 de7ac08f237b
parent 29 5ce5b22a9a0b
child 34 18b34db550ec
equal deleted inserted replaced
31:06a02dd3966f 32:de7ac08f237b
     1 import glob, os, re, sys
     1 import glob, os, re, sys
     2 import subprocess
     2 import subprocess
     3 import time
     3 import time
     4 names = glob.glob('/home/hg/repos/SEES-hacks/temp/ch*.docbook')
     4 names = glob.glob('/home/hg/repos/SEES-hacks/temp/ch*.docbook')
     5 for name in names:
     5 for name in names:
     6 	command="xsltproc html-single.xsl %s > %s.html" %(name ,name.split('.')[0])
     6 #	command="xsltproc html-single.xsl %s > %s.html" %(name ,name.split('.')[0])
       
     7     command="xsltproc %shtml-single.xsl %s > %s.html" %(xsl_loc, name ,name.split('.')[0])
       
     8 
     7 	print command	
     9 	print command	
     8 	subprocess.Popen(command,shell=True)
    10 	subprocess.Popen(command,shell=True)
     9 	time.sleep(10)
    11 	time.sleep(10)