Since different machines have the browser installed in different places and 
with many different names it is usually safer and better to use 
webbrowser.open<https://docs.python.org/3/library/webbrowser.html#webbrowser.open>
 rather than exe a file this will use the system default file on whatever 
machine it is running on.

Steve Barnes

From: [email protected] <[email protected]> On Behalf Of 
Jacoo
Sent: 24 March 2021 22:21
To: PyInstaller <[email protected]>
Subject: [PyInstaller] Problem with packing

Hello, I'm trying to pack python script with installed module Playwright into 
onefile. Everything works perfect until I try to open browser through exe file 
- it can't find browser. Could someone please help me and explain what I'm 
doing wrong?

I tried adding "--add-data"/"--add-binary" pointed to browser location and same 
error occurs.
--
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/aaf3bb5d-92dc-4279-8d49-63a3bffdc1c5n%40googlegroups.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpyinstaller%2Faaf3bb5d-92dc-4279-8d49-63a3bffdc1c5n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7C%7C1703302a34884fc44cb608d8ef640b49%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637522560243507256%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=6xR635fA1xUmqK5Pq7Fc7QkHLSBKm%2B3F2pWazhYiHAQ%3D&reserved=0>.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/VI1PR03MB44790C1C4BA01CADC64A62379B619%40VI1PR03MB4479.eurprd03.prod.outlook.com.

Reply via email to