Skip to content

Commit fed5dcb

Browse files
committed
examples: updated for current version
1 parent 3896e7e commit fed5dcb

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

AndroidViewClient/examples/click-button-by-text.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env monkeyrunner
1+
#! /usr/bin/env python
22
'''
33
Copyright (C) 2012 Diego Torres Milano
44
Created on May 5, 2012
@@ -10,16 +10,6 @@
1010
import os
1111
import time
1212

13-
# This must be imported before MonkeyRunner and MonkeyDevice,
14-
# otherwise the import fails.
15-
# PyDev sets PYTHONPATH, use it
16-
try:
17-
for p in os.environ['PYTHONPATH'].split(':'):
18-
if not p in sys.path:
19-
sys.path.append(p)
20-
except:
21-
pass
22-
2313
try:
2414
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
2515
except:
@@ -39,4 +29,4 @@
3929
print >>sys.stderr, "b%s not found" % bt
4030
time.sleep(7)
4131

42-
print >>sys.stderr, "bye"
32+
print >>sys.stderr, "bye"

0 commit comments

Comments
 (0)