From 05a3ee9394ce03c0f066bee06b8df28f46fd0c9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joseph=20Hopfm=C3=BCller?= Date: Sun, 17 Nov 2024 22:18:44 +0100 Subject: [PATCH] refactor: clean up .gitignore, remove unused scripts --- .gitignore | 6 +--- .../add_pypho.py | 0 src/util/add_parent.py | 29 ------------------- 3 files changed, 1 insertion(+), 34 deletions(-) rename src/{util => single-core-data-gen}/add_pypho.py (100%) delete mode 100644 src/util/add_parent.py diff --git a/.gitignore b/.gitignore index 34a96bc..a7efef9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,5 @@ src/**/*.ini -add_parent.py -!src/util/add_parent.py -add_pypho.py -!src/util/add_pypho.py - +.data # VSCode .vscode diff --git a/src/util/add_pypho.py b/src/single-core-data-gen/add_pypho.py similarity index 100% rename from src/util/add_pypho.py rename to src/single-core-data-gen/add_pypho.py diff --git a/src/util/add_parent.py b/src/util/add_parent.py deleted file mode 100644 index 559198e..0000000 --- a/src/util/add_parent.py +++ /dev/null @@ -1,29 +0,0 @@ - -# add_parent.py -# -# This file is part of the repo "optical-regeneration" -# https://git.suuppl.dev/seppl/optical-regeneration.git -# -# (c) Joseph Hopfmüller, 2024 -# Licensed under the EUPL -# -# Full license text in LICENSE file - -### - -# copy this file into the directory where you want to use pypho - -import sys -from pathlib import Path - -__log = [] - -# add the dir above the one where this file lives -__parent_dir = Path(__file__).parent -sys.path.append(str(__parent_dir.parent)) -__log.append(f"Added '{__parent_dir.parent}' to 'PATH'") - - -def show_log(): - for entry in __log: - print(entry)