1.1 --- a/optimiser.py Fri Oct 02 13:52:42 2015 +0200
1.2 +++ b/optimiser.py Fri Oct 02 19:24:04 2015 +0200
1.3 @@ -1,7 +1,7 @@
1.4 #!/usr/bin/env python
1.5
1.6 from random import random
1.7 -from os.path import extsep, splitext
1.8 +from os.path import splitext
1.9 import EXIF
1.10 import PIL.Image
1.11 import math
1.12 @@ -96,7 +96,7 @@
1.13
1.14 input_filename, output_filename = sys.argv[1:3]
1.15 basename, ext = splitext(output_filename)
1.16 - preview_filename = extsep.join([basename + "_preview", ext])
1.17 + preview_filename = "".join([basename + "_preview", ext])
1.18
1.19 preview = "-p" in sys.argv[3:]
1.20 rotate = "-r" in sys.argv[3:]