Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the folder from the absolute path to the instance #19

Merged
merged 1 commit into from
Mar 6, 2019

Conversation

miguelsousa
Copy link
Collaborator

Relates to adobe-type-tools/afdko#753

Traceback happens when filename is just the name of the UFO file with no leading folder path, e.g. <instance familyname="Test" filename="Test-Result.ufo" stylename="Result">

Traceback (most recent call last):
  File "/Users/msousa/Git/UFO/ufoProcessor/Lib/ufoProcessor/__init__.py", line 117, in build
    r = document.generateUFO(processRules=processRules)
  File "/Users/msousa/Git/UFO/ufoProcessor/Lib/ufoProcessor/__init__.py", line 305, in generateUFO
    os.makedirs(folder)
  File "/usr/local/bin/../Cellar/python/3.7.1/bin/../Frameworks/Python.framework/Versions/3.7/lib/python3.7/os.py", line 221, in makedirs
    mkdir(name, mode)
FileNotFoundError: [Errno 2] No such file or directory: ''

@LettError LettError merged commit 2a2c3da into master Mar 6, 2019
@miguelsousa miguelsousa deleted the folder-path-fix branch March 6, 2019 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants