@@ -7,18 +7,18 @@ Created on Mar 28, 2013
77Culebra helps you create AndroidViewClient scripts generating a working template that can be
88modified to suit more specific needs.
99 __ __ __ __
10- / \ / \ / \ / \
10+ / \ / \ / \ / \
1111____________________/ __\/ __\/ __\/ __\_____________________________
1212___________________/ /__/ /__/ /__/ /________________________________
1313 | / \ / \ / \ / \ \___
14- |/ \_/ \_/ \_/ \ o \
14+ |/ \_/ \_/ \_/ \ o \
1515 \_____/--<
1616@author: Diego Torres Milano
1717@author: Jennifer E. Swofford (ascii art snake)
1818
1919'''
2020
21- __version__ = '4.2.3 '
21+ __version__ = '4.5.2 '
2222
2323import re
2424import sys
@@ -29,14 +29,6 @@ import subprocess
2929import codecs
3030from datetime import date
3131
32- # PyDev sets PYTHONPATH, use it
33- try :
34- for p in os .environ ['PYTHONPATH' ].split (':' ):
35- if not p in sys .path :
36- sys .path .append (p )
37- except :
38- pass
39-
4032try :
4133 sys .path .append (os .path .join (os .environ ['ANDROID_VIEW_CLIENT_HOME' ], 'src' ))
4234except :
@@ -90,7 +82,7 @@ OPTS_HELP = {
9082 'd' : 'whether to use findViewWithContentDescription' ,
9183 'r' : 'use regexps in matches' ,
9284 'U' : 'generates unit test script' ,
93- 'j' : 'use jar and appropriate shebang to run script' ,
85+ 'j' : 'use jar and appropriate shebang to run script (deprecated) ' ,
9486 'D' : 'use a dictionary to store the Views found' ,
9587 'K' : 'dictionary keys from: id, text, content-description' ,
9688 'R' : 'auto regexps (i.e. clock)' ,
@@ -396,11 +388,11 @@ Copyright (C) 2013 Diego Torres Milano
396388Created on %s by Culebra v%s
397389
398390 __ __ __ __
399- / \ / \ / \ / \
391+ / \ / \ / \ / \
400392____________________/ __\/ __\/ __\/ __\_____________________________
401393___________________/ /__/ /__/ /__/ /________________________________
402394 | / \ / \ / \ / \ \___
403- |/ \_/ \_/ \_/ \ o \
395+ |/ \_/ \_/ \_/ \ o \
404396 \_____/--<
405397@author: Diego Torres Milano
406398@author: Jennifer E. Swofford (ascii art snake)
@@ -414,14 +406,6 @@ import os
414406
415407if not options [USE_JAR ]:
416408 print '''
417- # PyDev sets PYTHONPATH, use it
418- try:
419- for p in os.environ['PYTHONPATH'].split(':'):
420- if not p in sys.path:
421- sys.path.append(p)
422- except:
423- pass
424-
425409try:
426410 sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
427411except:
@@ -466,10 +450,7 @@ if options[INTERACTIVE]:
466450 data = s .recv (1024 )
467451 code = ViewClient .excerpt (data )
468452 exec code
469- # unfortunately, this does not work with monkeyrunner (OS X <= 22.0.1)
470- #resp = raw_input("Continue recording events? [Y/n]: ")
471- print >> sys .stderr , "Continue recording events? [Y/n]: "
472- resp = fin .readline ().strip ()
453+ resp = raw_input ("Continue recording events? [Y/n]: " )
473454 if resp in ['N' , 'n' ]:
474455 break
475456 s .sendall ("RECORD EVENTS STOP\n " )
0 commit comments