@@ -20,7 +20,7 @@ ___________________/ /__/ /__/ /__/ /________________________________
2020
2121'''
2222
23- __version__ = '11.5.11 '
23+ __version__ = '11.5.12 '
2424
2525import re
2626import sys
@@ -657,7 +657,9 @@ def printTakeSnapshot(filename, _format, deviceart, dropshadow, screenglare):
657657 warnings .warn ('Multi-device not implemented yet for this case' )
658658 else :
659659 logAction (u'taking snapshot @ %s format=%s %s %s %s' % (filename , _format , deviceart , dropshadow , screenglare ))
660- print '%s%svc.writeImageToFile(\' %s\' , \' %s\' , \' %s\' , %s, %s)' % (indent , prefix , filename , _format , deviceart , dropshadow , screenglare )
660+ if deviceart :
661+ deviceart = '\' %s\' ' % deviceart
662+ print '%s%svc.writeImageToFile(\' %s\' , \' %s\' , %s, %s, %s)' % (indent , prefix , filename , _format , deviceart , dropshadow , screenglare )
661663
662664
663665def traverseAndPrint (view ):
@@ -967,11 +969,13 @@ def printLogAction(action, priority='D'):
967969 print u'%s[_d.Log.%s(TAG, "%s", _v) for _d in %sallDevices()]' % (indent , priority .lower (), action , prefix )
968970 else :
969971 print '%s%sdevice.Log.%s(TAG, "%s", _v)' % (indent , prefix , priority .lower (), action )
970-
972+
973+
971974def logAction (action ):
972975 if options [CulebraOptions .LOG_ACTIONS ]:
973976 printLogAction (action )
974-
977+
978+
975979def runCulebron ():
976980 Culebron .checkSupportedSdkVersion (device .getSdkVersion ())
977981 Culebron .checkDependencies ()
@@ -982,7 +986,8 @@ def runCulebron():
982986 culebron .screenGlare = options [CulebraOptions .SCREEN_GLARE ]
983987 culebron .takeScreenshotAndShowItOnWindow ()
984988 culebron .mainloop ()
985-
989+
990+
986991def printShortcutVariables ():
987992 if options [CulebraOptions .UNIT_TEST_CLASS ] or options [CulebraOptions .UNIT_TEST_METHOD ]:
988993 print '''\
0 commit comments