www.fgks.org   »   [go: up one dir, main page]

Skip to content

Commit

Permalink
Stop importing _init_path in manage-imports.py
Browse files Browse the repository at this point in the history
The upshot of this commit is that it's now easier to import functions,
such as `do_import()` from `manage-imports.py`.

However, it will also break cron. At the very least the cron to "Add new
scans of yesterday to import queue" on `ol-home0` will need updating
with something like:
`30 4 * * * PYTHONPATH=/openlibrary $PYTHON /openlibrary/scripts..etc`
  • Loading branch information
scottbarnes committed Apr 12, 2024
1 parent f36ac9b commit 93b7848
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/manage-imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import sys
import time

import _init_path # Imported for its side effect of setting PYTHONPATH
import web

from openlibrary.api import OLError, OpenLibrary
Expand Down

0 comments on commit 93b7848

Please sign in to comment.