refactor: clean up .gitignore, remove unused scripts
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,9 +1,5 @@
|
|||||||
src/**/*.ini
|
src/**/*.ini
|
||||||
add_parent.py
|
.data
|
||||||
!src/util/add_parent.py
|
|
||||||
add_pypho.py
|
|
||||||
!src/util/add_pypho.py
|
|
||||||
|
|
||||||
|
|
||||||
# VSCode
|
# VSCode
|
||||||
.vscode
|
.vscode
|
||||||
|
|||||||
@@ -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)
|
|
||||||
Reference in New Issue
Block a user