wexpect-venv/dump_logs.py
2020-02-04 09:34:00 +01:00

30 lines
511 B
Python

import os
import glob
read_files = glob.glob("*.log")
for f in read_files:
print()
print(f)
print()
with open(f, "r") as infile:
print(infile.read())
read_files = glob.glob(".wlog/*.log")
for f in read_files:
print()
print(f)
print()
with open(f, "r") as infile:
print(infile.read())
read_files = glob.glob("tests/.wlog/*.log")
for f in read_files:
print()
print(f)
print()
with open(f, "rb") as infile:
print(infile.read())