From c7bd8ac59c3fcd04ecd65f4982c7a3c5ee141575 Mon Sep 17 00:00:00 2001 From: Paul Chaplin Date: Tue, 2 Feb 2010 19:57:24 +0000 Subject: [PATCH] Minor cross-platform-friendliness tweak. --- trimage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trimage.py b/trimage.py index d48603a..5d3f165 100644 --- a/trimage.py +++ b/trimage.py @@ -1,6 +1,7 @@ import sys from os import system from os import listdir +from os import path from PyQt4.QtCore import * from PyQt4.QtGui import * from hurry.filesize import * @@ -54,7 +55,7 @@ class StartQT4(QMainWindow): self.showapp = False imagedir = listdir(directory) for image in imagedir: - image = directory + "/" + image + image = path.join(directory, image) name = QFileInfo(image).fileName() if self.checkname(name): self.compress_file(image)