feaPyFoFum icon indicating copy to clipboard operation
feaPyFoFum copied to clipboard

font.path could be None

Open typemytype opened this issue 9 years ago • 0 comments

test if the path is None before getting the dirname

see https://github.com/typesupply/feaPyFoFum/blob/master/Lib/feaPyFoFum/feaPyFoFum.py#L39

relativePath = None
if font.path is not None:
    relativePath = os.path.dirname(font.path)

typemytype avatar Sep 08 '16 10:09 typemytype