From b7d87a8632361de8b957d806023cada4ddfc65b0 Mon Sep 17 00:00:00 2001 From: m-julian <52214154+m-julian@users.noreply.github.com> Date: Thu, 9 May 2024 17:24:45 +0100 Subject: [PATCH] remove file --- make_file_structure.py | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 make_file_structure.py diff --git a/make_file_structure.py b/make_file_structure.py deleted file mode 100644 index 0117ecc9..00000000 --- a/make_file_structure.py +++ /dev/null @@ -1,41 +0,0 @@ -import subprocess -from pathlib import Path - -from ichor.core.common.io import remove -from ichor.hpc.global_variables import FILE_STRUCTURE - -base_path = Path("test") -file_name = "file_structure.html" - -for key, val in FILE_STRUCTURE.items(): - (base_path / val.path).mkdir(parents=True, exist_ok=True) - -res = subprocess.run( - ["tree", "-R", "-a", "-d", "./test", "-o", file_name, "-H", "./test"], - capture_output=True, -) - -with open(file_name, "r") as htmlfile: - - lines = htmlfile.readlines() - - for idx, line in enumerate(lines): - - if "" + str(val.name) + "<" in line: - to_add = '