Skip to content

Commit

Permalink
- Flush some more
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10979 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 30, 2012
1 parent a9e94a1 commit 5463c7d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Examples/GenerateDoc.mos
Expand Up @@ -229,10 +229,13 @@ def linkreplace(link):

log = open('tidy.log','w')
verblog = open('tidy.verbose','w')

for f in glob.glob('*.html'):
log = open('tidy.log','a')
verblog = open('tidy.verbose','a')
log.write('Checking file '+f+'\\n')
verblog.write('Checking file '+f+'\\n')
log.flush()
verblog.flush()
p = subprocess.Popen(['-modify','-quiet',f],bufsize=1000,executable='tidy',stdin=None,stdout=verblog,stderr=log)
p.wait()
try:
Expand All @@ -252,7 +255,7 @@ for f in glob.glob('*.html'):
file = open(f,'w')
file.write(soup.__str__())
except:
log.write('Unknown python error')
log.write('Unknown python error in: ' + f)
");

writeFile("FindFiles.sh","#!/bin/bash
Expand Down

0 comments on commit 5463c7d

Please sign in to comment.