From 19d3d8be4568ce86c82530a0b62ff2869168cc27 Mon Sep 17 00:00:00 2001 From: Miguel Sousa Date: Tue, 5 Mar 2019 23:45:36 -0800 Subject: [PATCH] Get the folder from the absolute path to the instance Relates to https://github.com/adobe-type-tools/afdko/issues/753 --- Lib/ufoProcessor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ufoProcessor/__init__.py b/Lib/ufoProcessor/__init__.py index 770b2c7..180e01c 100644 --- a/Lib/ufoProcessor/__init__.py +++ b/Lib/ufoProcessor/__init__.py @@ -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)