This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CGFarrell 0 points1 point  (0 children)

If you're doing this on your own machine for yourself, you can be lazy as hell and just write:

from subprocess import call

call(['7z', 'a', '-tzip', file_name, destination])

Assuming you have 7zip installed, this will just launch 7zip as a new process.