Skip to content

Commit c2df410

Browse files
nichotinedKazuCocoa
authored andcommitted
Bug fix joining path in _get_main_script (appium#408)
1 parent 96d77eb commit c2df410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appium/webdriver/appium_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _get_main_script(self):
8989
if not hasattr(self, '_main_script'):
9090
for args in [['root', '-g'], ['root']]:
9191
try:
92-
modules_root = subprocess.check_output([self._get_npm()] + args).strip()
92+
modules_root = subprocess.check_output([self._get_npm()] + args).strip().decode('utf-8')
9393
if os.path.exists(os.path.join(modules_root, MAIN_SCRIPT_PATH)):
9494
self._main_script = os.path.join(modules_root, MAIN_SCRIPT_PATH)
9595
break

0 commit comments

Comments
 (0)