Return the contents of a file Arguments: - path: path to the file Returns: - contents of the file
(path)
| 60 | |
| 61 | |
| 62 | def read_file(path): |
| 63 | """ |
| 64 | Return the contents of a file |
| 65 | |
| 66 | Arguments: |
| 67 | - path: path to the file |
| 68 | |
| 69 | Returns: |
| 70 | - contents of the file |
| 71 | """ |
| 72 | with open(path, "r") as desc_file: |
| 73 | return desc_file.read().rstrip() |
| 74 | |
| 75 | |
| 76 | def run_setup(with_binary): |