Skip to content

Commit 90e8ad9

Browse files
committed
Check for sys.executable that may be not available on Windows
- Version 4.4.3
1 parent 78e0e4b commit 90e8ad9

2 files changed

Lines changed: 20 additions & 18 deletions

File tree

AndroidViewClient/src/com/dtmilano/android/adb/adbclient.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@
1717
@author: Diego Torres Milano
1818
'''
1919

20-
__version__ = '4.4.2'
20+
__version__ = '4.4.3'
2121

2222
import sys
23-
import warnings
24-
if 'monkeyrunner' in sys.executable:
25-
warnings.warn(
26-
'''
27-
28-
You should use a 'python' interpreter, not 'monkeyrunner' for this module
29-
30-
''', RuntimeWarning)
23+
import warnings
24+
if sys.executable:
25+
if 'monkeyrunner' in sys.executable:
26+
warnings.warn(
27+
'''
28+
29+
You should use a 'python' interpreter, not 'monkeyrunner' for this module
30+
31+
''', RuntimeWarning)
3132
import socket
3233
import time
3334
import re

AndroidViewClient/src/com/dtmilano/android/viewclient.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,18 @@
1818
@author: Diego Torres Milano
1919
'''
2020

21-
__version__ = '4.4.0'
21+
__version__ = '4.4.3'
2222

2323
import sys
24-
import warnings
25-
if 'monkeyrunner' in sys.executable:
26-
warnings.warn(
27-
'''
28-
29-
You should use a 'python' interpreter, not 'monkeyrunner' for this module
30-
31-
''', RuntimeWarning)
24+
import warnings
25+
if sys.executable:
26+
if 'monkeyrunner' in sys.executable:
27+
warnings.warn(
28+
'''
29+
30+
You should use a 'python' interpreter, not 'monkeyrunner' for this module
31+
32+
''', RuntimeWarning)
3233
import subprocess
3334
import re
3435
import socket

0 commit comments

Comments
 (0)