fontbakery: fontbakery main executable not recognized in Powershell/cmd.exe because of missing .py suffix

Observed behaviour

In cmd.exe and Powershell, scripts like fontbakery-check-googlefonts.py can be invoked either with or without suffix, but the main fontbakery can’t.

Expected behaviour

Running fontbakery should work on Windows.

Resources and exact process needed to replicate

Renaming the script to fontbakery.py makes it work as expected.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (11 by maintainers)

Most upvoted comments

you could make a fontbakery.cli module with the contents of the current bin/fontbakery, and a single console_scripts entry_point called just fontbakery, with each argparse subcommand calling functions from other sub-modules (one for each current bin/ script). And you won’t need to call the scripts as subprocesses as you do now.

(Note: i’m not a fontbakery developer and I’m not familiar with it’s codebase. This are just my 2c. Please defer to @felipesanches @graphicore @m4rc1e & co.)