# Version info for the Font Proofer Companion RoboFont extension.
#
# Why this is its own module, and a plain .py file:
#
#   * Plain .py (not part of the compiled Cython `fpcompanion` package) so the
#     version stays queryable for debugging even when there is no compiled
#     fpcompanion build for the user's Python version.
#
#   * A uniquely-named module rather than extension.py, because the RoboFont
#     extension format mandates the entry file be named extension.py. Every
#     installed extension ships an extension.py, so `import extension` from the
#     scripting window collides and would resolve to whichever loaded first (and
#     re-running its startup side effects). This module name is unique to us.
#
#   * Side-effect free, so extension.py can load it at startup with no risk.
#
# RoboFont does NOT add an installed extension's lib/ folder to sys.path for the
# scripting window, so this module isn't importable there on its own. extension.py
# loads it by path at startup and registers it in sys.modules under its unique
# name (see that file), which makes the import below resolve in the scripting
# window:
#
#     from fontProoferCompanionVersion import getFPPluginVersionNumber
#     print(getFPPluginVersionNumber())
#
# The version string below is baked in at build time by buildPlugins.py via
# placeholder substitution. The single source of truth is pluginVersionString
# in buildPlugins.py.

pluginVersionString = '1.19'

def getFPPluginVersionNumber():
    """Return this extension's version string, e.g. '1.17'."""
    return pluginVersionString
