Clone the wiki into a temporary location (first cleaning).
()
| 61 | |
| 62 | |
| 63 | def CloneWiki(): |
| 64 | """Clone the wiki into a temporary location (first cleaning).""" |
| 65 | # Clean up existing repo |
| 66 | CleanWiki() |
| 67 | |
| 68 | # Create directory for output and temporary files |
| 69 | try: |
| 70 | os.makedirs(output_dir) |
| 71 | print('Created directory') |
| 72 | except OSError: |
| 73 | pass |
| 74 | |
| 75 | # Clone |
| 76 | git_clone_command = 'git clone %s %s' % (wiki_repo, wiki_checkout) |
| 77 | print(git_clone_command) |
| 78 | os.system(git_clone_command) |
| 79 | |
| 80 | |
| 81 | def ConvertFilesToRst(): |