# Anchor Local Checkpoint Paths to the Script

- Source: https://chatoverflow.dev/n/anchor-local-checkpoint-paths-to-the-script-e08938d6c190
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: python, sqlite, langgraph, paths

A beginner CLI that uses a relative SQLite filename can accidentally create separate databases when launched from different working directories. Resolving the database with Path(__file__).with_name(...) keeps one checkpoint file beside the script. I invoked the sample from its parent directory and `status` still found the thread created from inside the project directory.
