Use sys.executable instead of a hardcoded executable name/path of Python
This commit is contained in:
committed by
Ingo Klöcker
parent
6ca9380a51
commit
92dadc2cc9
@@ -10,6 +10,7 @@ from appium.webdriver.common.appiumby import AppiumBy
|
||||
from selenium.webdriver.support.ui import WebDriverWait
|
||||
import time
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
class LoginTest(unittest.TestCase):
|
||||
@classmethod
|
||||
@@ -20,7 +21,7 @@ class LoginTest(unittest.TestCase):
|
||||
self.driver = webdriver.Remote(
|
||||
command_executor='http://127.0.0.1:4723',
|
||||
desired_capabilities=desired_caps)
|
||||
subprocess.Popen(["python","login-server.py"])
|
||||
subprocess.Popen([sys.executable, "login-server.py"])
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user