Mercurial > hg > MakeItSo
comparison makeitso/makeitso.py @ 89:e055447376ab
fixed double read problem
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Mon, 10 Jan 2011 19:58:21 -0800 |
| parents | 712a6d358083 |
| children | 26b9c3bba04e |
comparison
equal
deleted
inserted
replaced
| 88:712a6d358083 | 89:e055447376ab |
|---|---|
| 358 if output and len(self.templates) > 1 and not os.path.exists(output): | 358 if output and len(self.templates) > 1 and not os.path.exists(output): |
| 359 os.makedirs(output) | 359 os.makedirs(output) |
| 360 | 360 |
| 361 # do the substitution | 361 # do the substitution |
| 362 for template in self.templates: | 362 for template in self.templates: |
| 363 template.substitute(output, **variables) | 363 template.substitute(output, **vars) |
| 364 | 364 |
| 365 ### command line interface | 365 ### command line interface |
| 366 | 366 |
| 367 def invocation(url, **variables): | 367 def invocation(url, **variables): |
| 368 """returns a string appropriate for TTW invocation""" | 368 """returns a string appropriate for TTW invocation""" |
