Skip to content

Font Reinstallation doesn't work for some reason #145

@alichtman

Description

@alichtman

FileNotFoundError thrown on the destination of copyfile, but like obviously it doesn't exist because we're creating it?

It's weird because backup is set up in a similar way and it works.

Traceback (most recent call last):
  File "cli.py", line 179, in <module>
    cli()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "cli.py", line 158, in cli
    reinstall_fonts_sb(fonts_path)
  File "/Users/alichtman/Desktop/Development/projects/shallow-backup/shallow_backup/reinstall.py", line 36, in reinstall_fonts_sb
    copyfile(font, os.path.join("~/Library/Fonts", font.split("/")[-1]))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/shutil.py", line 121, in copyfile
    with open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '~/Library/Fonts/test.txt'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions