Use os.path.join

This commit is contained in:
Aurélien Gâteau 2014-07-30 15:06:59 +02:00
parent 22299dc585
commit 9c27add968

View File

@ -112,7 +112,7 @@ class UnsquashOperation:
imgbasename = os.path.splitext(
os.path.basename(entry.source))[0]
imgmountdir = source_mount_path + os.sep + imgbasename
imgmountdir = os.path.join(source_mount_path, imgbasename)
os.mkdir(imgmountdir)
self.report_progress()
self.unsquash_image(entry, imgmountdir)