Open .ufo and .glyphspackage via scripting

open(ufo_path/glyphspackage_path) actually raises the Traceback:
IsADirectoryError: [Errno 21] Is a directory: 'pathToFile.ufo | glyphspackage'

Could this be possible to add/fix?

Can you how the full script?

This works for me:"path to .ufo or .glyphspackage")

Your snippet suggests that you use the file open() function form Python. That can’t work with .ufo or .glyphspackage as those are packages/folders.

You’re right, I was not using How silly… Anyway, it works perfect. Many thanks!