main commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-16 16:30:25 +09:00
parent 91c7e04474
commit 537e7b363f
1146 changed files with 45926 additions and 77196 deletions

View File

@@ -51,13 +51,8 @@ def instantiate(name, *args, **kwargs):
@contextmanager
def cwd_in_path():
"""Context adding the current working directory to sys.path."""
try:
cwd = os.getcwd()
except FileNotFoundError:
cwd = None
if not cwd:
yield
elif cwd in sys.path:
cwd = os.getcwd()
if cwd in sys.path:
yield
else:
sys.path.insert(0, cwd)