Verified Commit 0ccb5fe7 authored by Markus Shepherd's avatar Markus Shepherd 🙈
Browse files

more path formatting

parent 7a1c05a0
...@@ -162,8 +162,18 @@ def main(): ...@@ -162,8 +162,18 @@ def main():
) )
) )
else: else:
curr = now()
out_path = args.out_path.format( out_path = args.out_path.format(
number=i, time=now().strftime("%Y-%m-%dT%H-%M-%S") number=i,
datetime=curr.strftime("%Y-%m-%dT%H-%M-%S"),
date=curr.strftime("%Y-%m-%d"),
time=curr.strftime("%H-%M-%S"),
year=curr.year,
month=curr.month,
day=curr.day,
hour=curr.hour,
minute=curr.minute,
second=curr.second,
) )
LOGGER.info("writing results to <%s>", out_path) LOGGER.info("writing results to <%s>", out_path)
with open(out_path, "w", newline="") as out_file: with open(out_path, "w", newline="") as out_file:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment