mirror of
https://github.com/aclist/dztui.git
synced 2026-11-01 15:42:51 +01:00
fix: use absolute path
This commit is contained in:
1 parent
63889c2299
commit
be6be2af7c
1 file changed
+1
-2
@@ -45,7 +45,6 @@ def get_ipdb(ips_path: Path) -> None:
|
|||||||
logger.info("Stripping IPv6 records")
|
logger.info("Stripping IPv6 records")
|
||||||
strip_ipv6(ips_path)
|
strip_ipv6(ips_path)
|
||||||
|
|
||||||
print("here")
|
|
||||||
with open(month_file, "w") as f:
|
with open(month_file, "w") as f:
|
||||||
f.write(date)
|
f.write(date)
|
||||||
logger.info(f"Wrote {date} to {month_file}")
|
logger.info(f"Wrote {date} to {month_file}")
|
||||||
@@ -108,4 +107,4 @@ def strip_ipv6(path: Path) -> None:
|
|||||||
if its > 0:
|
if its > 0:
|
||||||
out.write(merged)
|
out.write(merged)
|
||||||
path.unlink()
|
path.unlink()
|
||||||
alt_path.rename(path.name)
|
alt_path.rename(path)
|
||||||
Reference in new issue
Block a user