Advertisement
Guest User

Untitled

a guest
Dec 7th, 2022
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. MJOLNIR_SRC_DIR = "../../../../"
  2.  
  3. def get_version(d):
  4. import re
  5. with open(d.getVar('MJOLNIR_SRC_DIR') + '/src/python/about.py') as f:
  6. for line in f:
  7. matches = re.match('VERSION = [\'"](.*)[\'"]', line)
  8. if matches:
  9. return matches[1]
  10.  
  11. PV = "${@get_version(d)}"
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement