Skip to content

font.path could be None #5

@typemytype

Description

@typemytype

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions