refresh_session() was spawning post.py --login without the REDDIT_SESSION_FILE env
var, so Playwright wrote the refreshed session to the legacy session.json default
instead of sessions/alan_reddit.json. The poster then read a stale file and
failed with 'Playwright re-login failed'.
- Add os import; pass env={...os.environ, REDDIT_SESSION_FILE: str(session_file)}
to subprocess.run so post.py writes to the correct per-account path
- manage.sh status now checks sessions/alan_reddit.json (canonical) not session.json
- Replace session.json with a symlink to sessions/alan_reddit.json for legacy compat
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| client.py | ||
| post.py | ||
| session.py | ||