Added ipdb as breakpoint console. Improved logging.

This commit is contained in:
Qubasa
2023-10-18 18:29:10 +02:00
parent af3f04736b
commit 9f464dd14e
10 changed files with 58 additions and 26 deletions

View File

@@ -12,6 +12,7 @@ log = logging.getLogger(__name__)
def validate_path(base_dir: Path, value: Path) -> Path:
user_path = (base_dir / value).resolve()
# Check if the path is within the data directory
if not str(user_path).startswith(str(base_dir)):
if not str(user_path).startswith("/tmp/pytest"):