I have App
dir inside Release
dir
$ cd Release
$ tree
.
`-- App
|-- App.exe
..........
and I am trying to
Here's a couple of solutions that worked or me:
# curdir: Release
shutil.make_archive('App-1.0', 'zip', '.', 'App')
# curdir: ../Release
shutil.make_archive('Release/App-1.0', 'zip', 'Release', 'App')
What I learned while fighting with this is this:
shutil.make_archive('App-1.0', 'zip', '.', 'App')
While 'App-1.0' is technically a "filename", it must be represented as a path to the file without the extension ('c:\myfiles\myzipfile'). I have not played with all the variants for path names yet, so some of the shortcuts likely work (such as: 'Release/App-1.0').