(value, rewrite_path)
| 58 | return root |
| 59 | |
| 60 | def rewriteValueTree(value, rewrite_path): |
| 61 | rewrite = json.dumps(value) |
| 62 | #rewrite = rewrite[1:-1] # Somehow the string is quoted ! jsonpy bug ? |
| 63 | file(rewrite_path, 'wt').write(rewrite + '\n') |
| 64 | return rewrite |
| 65 | |
| 66 | input = file(input_path, 'rt').read() |
| 67 | root = parseAndSaveValueTree(input, actual_path) |
no test coverage detected