summarylogtreecommitdiffstats
path: root/python2.patch
blob: 65e9c4f26227182245dd2e1d81b249276c8b6411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
From d6b852cfb792f075831bcdd64aa51583e097a632 Mon Sep 17 00:00:00 2001
From: rafaqzsu <rafaqzsu@gmail.com>
Date: Thu, 26 Nov 2015 17:49:47 +1100
Subject: [PATCH] use python2 binary

---
 cropgtk.py | 2 +-
 cropgui.py | 2 +-
 install.sh | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cropgtk.py b/cropgtk.py
index 135b6a8..b796d1f 100755
--- a/cropgtk.py
+++ b/cropgtk.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #    cropgui, a graphical front-end for lossless jpeg cropping
 #    Copyright (C) 2009 Jeff Epler <jepler@unpythonic.net>
 #    This program is free software; you can redistribute it and/or modify
diff --git a/cropgui.py b/cropgui.py
index 121d016..9299fde 100755
--- a/cropgui.py
+++ b/cropgui.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #    cropgui, a graphical front-end for lossless jpeg cropping
 #    Copyright (C) 2009 Jeff Epler <jepler@unpythonic.net>
 #    This program is free software; you can redistribute it and/or modify
diff --git a/install.sh b/install.sh
index f2421cf..05a916f 100755
--- a/install.sh
+++ b/install.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
-PYTHON=python
+PYTHON=python2
 BINDIR=$HOME/bin; LIBDIR=$HOME/lib/python SHAREDIR=$HOME/share
 
 default_flavor () {
@@ -73,7 +73,7 @@ if [ $? -ne 0 ]; then exit $?; fi
 
 chmod +x $TARGET$BINDIR/cropgui
 
-if [ -z "$TARGET" ] && ! (cd /tmp; python -c 'import cropgui_common') > /dev/null 2>&1; then
+if [ -z "$TARGET" ] && ! (cd /tmp; $PYTHON -c 'import cropgui_common') > /dev/null 2>&1; then
     echo "*** Failed to import cropgui_common.py"
     echo "    You must add $LIBDIR to PYTHONPATH"
     exit 1
-- 
2.6.1