[ufoLib] use self.fileSystem.joinPath instead of reader.joinPath

This commit is contained in:
Cosimo Lupo 2017-07-21 14:11:13 +01:00
parent e3d89cee7f
commit 2bef40c30d

View File

@ -1028,8 +1028,8 @@ class UFOWriter(object):
"""
if self._formatVersion < 3:
raise UFOLibError("Images are not allowed in UFO %d." % self._formatVersion)
sourcePath = reader.joinPath(IMAGES_DIRNAME, sourceFileName)
destPath = self.joinPath(IMAGES_DIRNAME, destFileName)
sourcePath = self.fileSystem.joinPath(IMAGES_DIRNAME, sourceFileName)
destPath = self.fileSystem.joinPath(IMAGES_DIRNAME, destFileName)
self.copyFromReader(reader, sourcePath, destPath)