On Windows OS, module pyupdater.client.updates.
file_requires_admin(file_path) function gives false positive, because open(file_path, "a+") on any process image file while it's being running always raises PermissionError exception.
Propose to use this check instead:
os.access(file_path, os.W_OK)
On Windows OS, module
pyupdater.client.updates
.file_requires_admin(file_path)
function gives false positive, becauseopen(file_path, "a+")
on any process image file while it's being running always raisesPermissionError
exception.Propose to use this check instead:
os.access(file_path, os.W_OK)