Advertisement
Guest User

Untitled

a guest
May 7th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. # mycustom.bbclass
  2. python do_foo () {
  3.         package = d.getVar('PN', True)
  4.         version = d.getVar('PV', True)
  5.         s = "$ \"{0}\",\"{1}\"\n".format(package,version)
  6.         with open("foo.txt", "a") as logFile:
  7.                 logFile.write(s);
  8. }
  9. do_install[postfuncs] += "do_foo"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement