[ufoLib] use self.fileSystem.joinPath instead of reader.joinPath
This commit is contained in:
parent
e3d89cee7f
commit
2bef40c30d
@ -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)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user