mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
parent
6f4d458855
commit
65691dfac6
4 changed files with 27 additions and 10 deletions
|
@ -26,7 +26,13 @@ dirname = os.path.join(os.path.dirname(os.path.dirname(__file__)), "share", "blu
|
|||
if os.path.isdir(os.path.join(dirname, "blueprintcompiler")):
|
||||
sys.path.insert(0, dirname)
|
||||
|
||||
# Get the configured (or, if running from source, not configured) version number
|
||||
version = "@VERSION@"
|
||||
|
||||
def literal(key):
|
||||
return "@" + key + "@"
|
||||
|
||||
from blueprintcompiler import main
|
||||
|
||||
if __name__ == "__main__":
|
||||
main.main()
|
||||
main.main("uninstalled" if version == literal("VERSION") else version)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue