I’m automating with Appium, a script I wrote in Python, and then packaged in Pyinstaller as an app on macOS. Clicking on the app icon brings up the pyqt interface I wrote. However, no automation was possible, and a look at Appium’s port revealed that Appium was not started. I’ve hard-coded the path to My Appium in my script, but clicking the icon still won’t start it. I tried to run the app’s executable on the terminal, but Appium worked fine. May I ask why
Today is mainly aimed at yesterday’s app click icon can not wake up appium problem to solve, tried many methods still have no effect. At present, script execution or terminal execution in the app file can start appium normally.
- Change a python library that encapsulates the app, and use pyinstaller instead of py2app. This method is invalid.
- Hard-code the startup path of appium into the code, first locate it in the path, and then execute the startup code of appium. Logically speaking, this method should be effective. But it’s equally ineffective.
- Modify the info.plist file of the generated app directly and add the environment path of appium to the file. This method is not effective in solving
李墨之 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.