Add your own code in the source code, but not execute

Most recently in Xen code, your own code just join in tools/python/xen/xm/migrate.py, but make & & make install, during the execution of the command has no effect, this is why?
Such as
  1. def main(argv):
  2. opts = gopts
  3. opts.reset()
  4. args = opts.parse(argv)

  5. if len(args) != 2:
  6. raise OptionError('Invalid number of arguments')

  7. """start of my code"""
  8. fp = open("/m.log",'w')
  9. fp.write('start')
  10. fp.close()
  11. """end of my code"""
  12. ....
After executing the command, no file ah, plus print inside has no effect, some people know why?

Started by Murphy at January 04, 2017 - 8:07 AM

Call aunt ah

Posted by Murphy at January 04, 2017 - 9:04 AM

How anyone. .

Posted by Murphy at January 14, 2017 - 7:11 AM