From ed56fbd144d86a0fa04c983ca965903198220407 Mon Sep 17 00:00:00 2001 From: Lawrence Hudson Date: Wed, 17 Aug 2016 12:30:29 +0100 Subject: [PATCH] [#347] python2 in scripts --- CHANGELOG.md | 1 + bin/plist.py | 2 +- inselect.py | 2 +- inselect/scripts/export_metadata.py | 2 +- inselect/scripts/ingest.py | 2 +- inselect/scripts/read_barcodes.py | 2 +- inselect/scripts/save_crops.py | 2 +- inselect/scripts/segment.py | 2 +- setup.py | 2 +- 9 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f25410e..34adfb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ This is an overview of major changes. Refer to the git repository for a full log Version 0.1.34 ------------- +- #347 Explicitly reference python2 in scripts - #333 Ugly error message when opening or saving a file - #330 libdmtx URL incorrect - #328 Menu commands to show cookie cutter and metadata template files diff --git a/bin/plist.py b/bin/plist.py index ef7cd64..c45d512 100755 --- a/bin/plist.py +++ b/bin/plist.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 """Alter Inselect's existing plist file """ diff --git a/inselect.py b/inselect.py index feca949..b1eedc7 100755 --- a/inselect.py +++ b/inselect.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 import sys if sys.platform == 'win32' and hasattr(sys, 'frozen'): diff --git a/inselect/scripts/export_metadata.py b/inselect/scripts/export_metadata.py index 3683daf..74b8b4a 100755 --- a/inselect/scripts/export_metadata.py +++ b/inselect/scripts/export_metadata.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 """Exports metadata """ from __future__ import print_function diff --git a/inselect/scripts/ingest.py b/inselect/scripts/ingest.py index 88c7637..d595162 100755 --- a/inselect/scripts/ingest.py +++ b/inselect/scripts/ingest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 """Ingests scanned images """ from __future__ import print_function diff --git a/inselect/scripts/read_barcodes.py b/inselect/scripts/read_barcodes.py index f3e5446..449de27 100755 --- a/inselect/scripts/read_barcodes.py +++ b/inselect/scripts/read_barcodes.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 """Post-process """ from __future__ import print_function diff --git a/inselect/scripts/save_crops.py b/inselect/scripts/save_crops.py index f633999..8505ba5 100755 --- a/inselect/scripts/save_crops.py +++ b/inselect/scripts/save_crops.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 """Saves cropped object images """ from __future__ import print_function diff --git a/inselect/scripts/segment.py b/inselect/scripts/segment.py index e908c47..f156af4 100755 --- a/inselect/scripts/segment.py +++ b/inselect/scripts/segment.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 """Segment documents """ from __future__ import print_function diff --git a/setup.py b/setup.py index dada0e8..e2895d8 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 import sys import inselect