OiO.lk Blog python Page not found
python

Page not found


I’m recording the a window of an application using OpenCV and then zipping it up and upload it to my Google Drive and I’m using the Window’s header title (titlebar) as the filename and inside the title is a path.

Here is the filename: Scripts [C:/Users/phpjunkie/Python/Scripts] – temp.py.mp4 and this is what the name is being turned into during zipfile.ZipFile.write: 0 - Scripts [C_\Users\phpjunkie\Python\Scripts] – spy_bot.py.mp4.

Both os.isdir and os.isfile return false with the header title. I’ve spent close to a day trying to get around this. Does anyone have a suggestion on how to get zipfile.ZipFile.write and zipfile.ZipFile.open from seeing this as a file path.



You need to sign in to view this answers

Exit mobile version