Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MJOLNIR_SRC_DIR = "../../../../"
- def get_version(d):
- import re
- with open(d.getVar('MJOLNIR_SRC_DIR') + '/src/python/about.py') as f:
- for line in f:
- matches = re.match('VERSION = [\'"](.*)[\'"]', line)
- if matches:
- return matches[1]
- PV = "${@get_version(d)}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement