__author__ = 'chunk' import os, sys from subprocess import Popen, PIPE, STDOUT from common import * timer = Timer() timer.mark() os.environ["CLASSPATH"] = "../libs/F5/" cmd = 'java Embed %s %s -e ../res/toembed -p password -c "stegan by chunk "' p = Popen(cmd % ('../res/lopez.jpg', '../res/lopez.jpg'), shell=True, stdout=PIPE, stderr=STDOUT) timer.report() # list_ipdesc = [line.strip('\n') for line in p.stdout.readlines()] timer.report() # print list_ipdesc