I am getting a "WindowsError: [Error 5] Access is denied" error in my Python 2.7 script. There is no folder listed after the Access is denied message. I am not an administrator, but have full read/write/execute/modify security set for both the target .7z file and the output folder. Here is the relevant code:
if os.path.isfile(os.path.join(outRoot[0], outRoot[1] + "_photos.7z")):
#Unzip photo folder
import subprocess
source = outFolder + "_photos.7z"
pw = ''
subprocess.call(['"C:\\Program Files\\7-Zip\\7z.exe" x ' + source + ' -o' + outRoot[0] + ' -p' + pw])