From 37ca92cc8923254bb579eb986bb924438bd5e9e8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 10 Mar 2020 22:42:21 -0700 Subject: use local env in python scripts Without this correct/canonical shebang invocation, virtualenvs (pipenv) don't work. --- python/scripts/arabesque2ingestrequest.py | 2 +- python/scripts/ingestrequest_row2json.py | 2 +- python/scripts/unpaywall2ingestrequest.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/scripts/arabesque2ingestrequest.py b/python/scripts/arabesque2ingestrequest.py index fa46f10..03a1f29 100755 --- a/python/scripts/arabesque2ingestrequest.py +++ b/python/scripts/arabesque2ingestrequest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ This script is intended to be used for backfill ingest of old crawls. It can diff --git a/python/scripts/ingestrequest_row2json.py b/python/scripts/ingestrequest_row2json.py index 563855d..494ec7a 100755 --- a/python/scripts/ingestrequest_row2json.py +++ b/python/scripts/ingestrequest_row2json.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ This script is used to turn ingest request postgres rows (in JSON export diff --git a/python/scripts/unpaywall2ingestrequest.py b/python/scripts/unpaywall2ingestrequest.py index c51a152..2999574 100755 --- a/python/scripts/unpaywall2ingestrequest.py +++ b/python/scripts/unpaywall2ingestrequest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ Transform an unpaywall dump (JSON) into ingest requests. -- cgit v1.2.3