Skip to content

Commit

Permalink
Add support for python 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
danboid committed Jun 3, 2017
1 parent 8add04f commit 3444e01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ After installing shufti, and only once (before your first use) you need to right
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:

```
$ python3 shufti.py /full/path/to/image/file
$ python shufti.py /full/path/to/image/file
```

or if you're running shufti from the Windows command prompt using the .exe, something like:
Expand Down
10 changes: 5 additions & 5 deletions shufti.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/python3
#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''
shufti 2.1git - The persistent image viewer
shufti 2.1 - The persistent image viewer
By Dan MacDonald, 2017.
Expand Down Expand Up @@ -73,7 +73,7 @@ class AboutShufti(QLabel):

def __init__(self):

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!")
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!")
self.setAlignment(QtCore.Qt.AlignCenter)

def initUI(self):
Expand All @@ -90,11 +90,11 @@ def center(self):
class Shufti(ShuftiWindow):

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

0 comments on commit 3444e01

Please sign in to comment.