0
$\begingroup$

I was planning to create some simple help-like text or HTML documents in a local folder of my add-on, and provide "help" buttons on the panels to allow the user to access them from each section that relates to that file.

Is there a way to open these files using the user's default program from within Blender?

$\endgroup$
1
$\begingroup$

You can add a wiki URL ("wiki_url") to the bl_info of your add-on. This will result in a link to the documentation in the add-on preferences. Alternatively you can use bpy.ops.wm.url_open(url="") in your code to open the browser.

Screenshot

$\endgroup$
  • $\begingroup$ Thanks rjg. I also found that you can use subprocess to open any file type with its default program: import subprocess (next-line) subprocess.run( "C:\\Temp\\Test.txt", shell=True) $\endgroup$ – Robert Sep 30 at 12:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.