[bugfix] fix global declaration
This commit is contained in:
parent
e521ddbb40
commit
b2e6c55d8b
2
dump.py
2
dump.py
|
@ -196,6 +196,7 @@ def create_dir(path):
|
||||||
print path + u" is existed!";
|
print path + u" is existed!";
|
||||||
|
|
||||||
def open_target_app(isbundleid, value):
|
def open_target_app(isbundleid, value):
|
||||||
|
global session;
|
||||||
device = get_usb_iphone();
|
device = get_usb_iphone();
|
||||||
name = u'SpringBoard';
|
name = u'SpringBoard';
|
||||||
print "open target app......"
|
print "open target app......"
|
||||||
|
@ -212,6 +213,7 @@ def open_target_app(isbundleid, value):
|
||||||
time.sleep(5);
|
time.sleep(5);
|
||||||
|
|
||||||
def start_dump(target):
|
def start_dump(target):
|
||||||
|
global session;
|
||||||
print "start dump target app......"
|
print "start dump target app......"
|
||||||
device = get_usb_iphone();
|
device = get_usb_iphone();
|
||||||
session = device.attach(target);
|
session = device.attach(target);
|
||||||
|
|
Loading…
Reference in New Issue