Skip to content

Commit

Permalink
Merge pull request #19 from LettError/folder-path-fix
Browse files Browse the repository at this point in the history
Get the folder from the absolute path to the instance
  • Loading branch information
LettError authored Mar 6, 2019
2 parents d91510c + 19d3d8b commit 2a2c3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/ufoProcessor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def generateUFO(self, processRules=True, glyphNames=None, pairs=None, bend=True)
if instanceDescriptor.path is None:
continue
font = self.makeInstance(instanceDescriptor, processRules, glyphNames=glyphNames, pairs=pairs, bend=bend)
folder = os.path.dirname(instanceDescriptor.path)
folder = os.path.dirname(os.path.abspath(instanceDescriptor.path))
path = instanceDescriptor.path
if not os.path.exists(folder):
os.makedirs(folder)
Expand Down

0 comments on commit 2a2c3da

Please sign in to comment.