Minor cross-platform-friendliness tweak.

This commit is contained in:
Paul Chaplin 2010-02-02 19:57:24 +00:00
parent fdf7b9d0ce
commit c7bd8ac59c

View file

@ -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)