mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 18:08:42 -05:00
Minor cross-platform-friendliness tweak.
This commit is contained in:
parent
fdf7b9d0ce
commit
c7bd8ac59c
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue