(self, path)
| 109 | return filebase |
| 110 | |
| 111 | def _read_json(self, path): |
| 112 | try: |
| 113 | with open(path) as f: |
| 114 | file = json.load(f) |
| 115 | except json.decoder.JSONDecodeError: |
| 116 | with open(path) as f: |
| 117 | # in some files I have wrong escapechars as "\o", while it should be "\\o" |
| 118 | file = json.loads(f.read().replace(r"\o", r"\\o")) |
| 119 | return file |
| 120 | |
| 121 | |
| 122 | if __name__ == "__main__": |
no outgoing calls
no test coverage detected