[bugfix] fix global declaration

This commit is contained in:
AloneMonkey 2018-02-07 13:08:09 +08:00
parent e521ddbb40
commit b2e6c55d8b
1 changed files with 2 additions and 0 deletions

View File

@ -196,6 +196,7 @@ def create_dir(path):
print path + u" is existed!";
def open_target_app(isbundleid, value):
global session;
device = get_usb_iphone();
name = u'SpringBoard';
print "open target app......"
@ -212,6 +213,7 @@ def open_target_app(isbundleid, value):
time.sleep(5);
def start_dump(target):
global session;
print "start dump target app......"
device = get_usb_iphone();
session = device.attach(target);