JacquesLucke / blender_vscode

Visual Studio Code extension for Blender development.
MIT License
540 stars 70 forks source link

PermissionError: [WinError 5] #132

Open Gaia-X-Alter opened 1 year ago

Gaia-X-Alter commented 1 year ago

https://github.com/JacquesLucke/blender_vscode/blob/1449ff34988784242144251cc20a771412797f2d/pythonFiles/include/blender_vscode/load_addons.py#L42

_os.remove(path, *, dirfd=None) Remove (delete) the file path. If path is a directory, an IsADirectoryError is raised. Use [rmdir()](https://docs.python.org/3/library/os.html#os.rmdir) to remove directories. If the file does not exist, a FileNotFoundError is raised.

--https://docs.python.org/3/library/os.html

you can not remove a pugin folder via os.remove when the old plugin folder exists

->#17

theoryshaw commented 10 months ago

This worked for me! Possible to put in a PR with this fix?

theoryshaw commented 10 months ago

related: https://community.osarch.org/discussion/comment/17160/#Comment_17160