QDesktopServices.openUrl fails to open local file on Ubuntu
-
wrote on 12 Mar 2021, 18:06 last edited by
@eyllanesc said in QDesktopServices.openUrl fails to open local file on Ubuntu:
@efremdan1 I don't recommend using relative paths as they will depend on where the "current location" is. In your case it seems that you are executing the script of the form: python script.py but if at another time you execute it as python foo/script.py it may fail. Relative paths are one of the most common causes of silent errors that are the worst at debugging.
You're indeed correct. Thank you.
21/21