Skip to content

Commit 3444e01

Browse files
committed
Add support for python 2.x
1 parent 8add04f commit 3444e01

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ After installing shufti, and only once (before your first use) you need to right
3636
It is also possible to run shufti from the command line. This is the only way to use it under macOS currently. You'd run:
3737

3838
```
39-
$ python3 shufti.py /full/path/to/image/file
39+
$ python shufti.py /full/path/to/image/file
4040
```
4141

4242
or if you're running shufti from the Windows command prompt using the .exe, something like:

shufti.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

44
'''
5-
shufti 2.1git - The persistent image viewer
5+
shufti 2.1 - The persistent image viewer
66
77
By Dan MacDonald, 2017.
88
@@ -73,7 +73,7 @@ class AboutShufti(QLabel):
7373

7474
def __init__(self):
7575

76-
QLabel.__init__(self,"shufti 2.1git\n\nBy Dan MacDonald, 2017\n\nIf you find shufti useful, please make a donation via PayPal\n\n[email protected]\n\nThanks!")
76+
QLabel.__init__(self,"shufti 2.1\n\nBy Dan MacDonald, 2017\n\nIf you find shufti useful, please make a donation via PayPal\n\n[email protected]\n\nThanks!")
7777
self.setAlignment(QtCore.Qt.AlignCenter)
7878

7979
def initUI(self):
@@ -90,11 +90,11 @@ def center(self):
9090
class Shufti(ShuftiWindow):
9191

9292
def __init__(self):
93-
super().__init__()
93+
super(Shufti,self).__init__()
9494
try:
9595
self.key = sys.argv[1]
9696
except IndexError:
97-
print('\nshufti 2.1git\n\nTo use shufti from the terminal, you must specify the full path to an image as a parameter.\n')
97+
print('\nshufti 2.1\n\nTo use shufti from the terminal, you must specify the full path to an image as a parameter.\n')
9898
sys.exit(1)
9999
self.dbSanitise()
100100
self.formats = ('.png', '.jpg', '.jpeg', '.gif', '.bmp', '.pbm', '.pgm', '.ppm',

0 commit comments

Comments
 (0)