Skip to content

Commit 4ac6887

Browse files
committed
Fix adb path
1 parent eb53b2c commit 4ac6887

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def adbShell(self):
8787
global adbpath
8888
subprocess.call((f'{adbpath} disconnect'), shell=True)
8989
subprocess.call((f'{adbpath} connect 127.0.0.1:58526'), shell=True)
90-
os.system('start cmd /k adb shell')
90+
os.system(f'start cmd /k {adbpath} shell')
9191
self.status.set('Finished opening adb shell')
9292

9393
def installURL(self, link, name='app'):
@@ -153,6 +153,8 @@ def resource_path(relative_path):
153153
except :
154154
adbpath = resource_path('adb.exe')
155155

156+
adbpath = os.path.abspath(adbpath)
157+
156158
root = tk.Tk()
157159
root.geometry(f'{WIDTH}x{HEIGHT}')
158160
root.resizable(False, False)

0 commit comments

Comments
 (0)