Changeset 72:3e3138e44f84
- Timestamp:
- 02/28/09 14:53:52 (3 years ago)
- Author:
- "Felix Schwarz <felix.schwarz@…
- Branch:
- default
- Message:
-
cleanup assembly script - tempfile can clean up itself
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r71
|
r72
|
|
| 11 | 11 | def build_documentation(project_dir): |
| 12 | 12 | doc_dir = os.path.join(project_dir, 'docs') |
| 13 | | temp_file, temp_name = tempfile.mkstemp() |
| | 13 | temp_file = tempfile.TemporaryFile() |
| 14 | 14 | # We don't need any output on stdout |
| 15 | 15 | subprocess.call(['make', 'html'], cwd=doc_dir, stdout=temp_file) |
| 16 | | os.unlink(temp_name) |
| 17 | 16 | |
| 18 | 17 | def make_relative_filename(topdir, filename): |