Guest User

Untitled

a guest
Mar 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. $ cd Release
  2. $ tree
  3. .
  4. `-- App
  5. |-- App.exe
  6. ..........
  7.  
  8. import shutil
  9.  
  10. shutil.make_archive('App-1.0', 'zip', '.')
  11.  
  12. shutil.make_archive('App-1.0', 'zip', 'App', 'App')
  13.  
  14. Traceback (most recent call last):
  15. File ".......archive.py", line 4, in <module>
  16. shutil.make_archive(sys.argv[1], "zip", sys.argv[2], sys.argv[3])
  17. File "C:UsersAlex.virtualenvs....-nAKWzegLlibshutil.py", line 800, in make_archive
  18. filename = func(base_name, base_dir, **kwargs)
  19. File "C:UsersAlex.virtualenvs....-nAKWzegLlibshutil.py", line 686, in _make_zipfile
  20. zf.write(path, path)
  21. File "C:UsersAlexAppDataLocalProgramsPythonPython36-32Libzipfile.py", line 1594, in write
  22. zinfo = ZipInfo.from_file(filename, arcname)
  23. File "C:UsersAlexAppDataLocalProgramsPythonPython36-32Libzipfile.py", line 484, in from_file
  24. st = os.stat(filename)
  25. FileNotFoundError: [WinError 2] The system cannot find the file specified: "'App'"
Add Comment
Please, Sign In to add comment