wexpect-venv/dump_logs.py

15 lines
283 B
Python
Raw Normal View History

2020-02-01 20:34:34 +00:00
import os
import glob
read_files = glob.glob(".wlog/*.log")
for f in read_files:
with open(f, "r") as infile:
print(infile.read())
read_files = glob.glob("tests/.wlog/*.log")
for f in read_files:
with open(f, "rb") as infile:
print(infile.read())