Python Forum
How To Unload Windows Native Extension ( .pyd )?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Unload Windows Native Extension ( .pyd )?
#4
Like the original poster, I have written a Blender addon which requires a dll (.pyd for Windows). When 'Remove' is clicked within Blender to remove this addon, a function is called which deletes the files from their path in Blender's AppData. The issue is that if the dll is not unloaded before this remove process is attempted, os.unlink cannot act on the dll as access is denied. The addon I am developing is a commercial addon and so not being able to remove it after installation impacts on customer experience. I have been looking for a way to unload the dll using python for a while now but have had no luck.
Reply


Messages In This Thread
RE: How To Unload Windows Native Extension ( .pyd )? - by lexielightmap - Mar-18-2020, 09:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  View and extend native python class PythonDev 2 1,689 Oct-24-2020, 08:59 PM
Last Post: Gribouillis
  Error in compiling cython extension on Python 3.6.4 on Windows 8 goldenmean 3 5,822 Jun-05-2019, 09:37 PM
Last Post: Larz60+
  Native support for array-slicing syntax? nxs 1 2,281 Apr-22-2019, 02:34 AM
Last Post: ichabod801
  Pythonista script with iPhone's native Clock app Sharkman157 0 2,630 Sep-27-2018, 05:23 PM
Last Post: Sharkman157
  How to play a song .wav or .mp3 with audioop native library IvanSilva 3 6,597 Mar-14-2018, 10:49 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020