lint main

This commit is contained in:
Marc Beninca 2024-06-10 15:39:39 +02:00
parent 88434db29a
commit a5ca3a6044
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,14 +1,11 @@
#! /usr/bin/env python3 #! /usr/bin/env python3
from pathlib import Path
import os
import fs import fs
if __name__ == "__main__": if __name__ == "__main__":
file_path = os.path.realpath(__file__) file_path = Path(__file__).resolve()
root_path = os.path.dirname(file_path) root_path = file_path.parent
directory_path = os.path.join(root_path, "tmp") directory_path = root_path / "tmp"
file_path = os.path.join(directory_path, "file") file_path = directory_path / "file"
fs.wipe(directory_path) fs.wipe(directory_path)
fs.make_directory(directory_path) fs.make_directory(directory_path)