Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cd Release
- $ tree
- .
- `-- App
- |-- App.exe
- ..........
- import shutil
- shutil.make_archive('App-1.0', 'zip', '.')
- shutil.make_archive('App-1.0', 'zip', 'App', 'App')
- Traceback (most recent call last):
- File ".......archive.py", line 4, in <module>
- shutil.make_archive(sys.argv[1], "zip", sys.argv[2], sys.argv[3])
- File "C:UsersAlex.virtualenvs....-nAKWzegLlibshutil.py", line 800, in make_archive
- filename = func(base_name, base_dir, **kwargs)
- File "C:UsersAlex.virtualenvs....-nAKWzegLlibshutil.py", line 686, in _make_zipfile
- zf.write(path, path)
- File "C:UsersAlexAppDataLocalProgramsPythonPython36-32Libzipfile.py", line 1594, in write
- zinfo = ZipInfo.from_file(filename, arcname)
- File "C:UsersAlexAppDataLocalProgramsPythonPython36-32Libzipfile.py", line 484, in from_file
- st = os.stat(filename)
- FileNotFoundError: [WinError 2] The system cannot find the file specified: "'App'"
Add Comment
Please, Sign In to add comment