Skip to content

Commit

Permalink
Get the folder from the absolute path to the instance
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelsousa committed Mar 6, 2019
1 parent e0fbcd9 commit 19d3d8b
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 19d3d8b

Please sign in to comment.