2
import imp, sys, os.path
4
magic = "".join(["\\x%.2x" % c for c in imp.get_magic()])
10
interpreter /usr/bin/%s
12
''' % (name, name, magic)
14
#filename = '/usr/share/binfmts/' + name
15
#open(filename,'w+').write(binfmt)
17
sys.stdout.write(binfmt)
18
sys.stdout.write('\n')