Permalink
Browse files

Improved pathname handling

Removed Windows-specific .exe extensions
Added cross-platform pathname joining
  • Loading branch information...
1 parent e35ac88 commit 3776ce3e0315296496c9307e409e31fbb8dff193 @eromba committed Oct 10, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 jtd-android-init.py
View
@@ -34,6 +34,7 @@
#
+import os
import sys
import subprocess
import time
@@ -95,8 +96,8 @@ def AndroidBrowserIsCaptured():
AVD_NAME = sys.argv[4]
DELAY = sys.argv[5]
-ADB_PATH = SDK_PATH + "/platform-tools/adb.exe"
-EMULATOR_PATH = SDK_PATH + "/tools/emulator.exe"
+ADB_PATH = os.path.abspath( os.path.join(SDK_PATH, "platform-tools/adb") )
+EMULATOR_PATH = os.path.abspath( os.path.join(SDK_PATH, "tools/emulator") )
#

0 comments on commit 3776ce3

Please sign in to comment.