Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
fix: tar.py is somehow broken
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored and nitsakh committed Mar 18, 2019
1 parent e1dbfb2 commit 6e4acd1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tools/tar.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import os
import sys
import tarfile
source = sys.argv[1]

source = sys.argv[1]
target = sys.argv[2]
os.chdir(os.path.dirname(source))
print(os.getcwd())
print(os.path.basename(target), source, os.path.relpath(source))
tarball = tarfile.open(name=os.path.basename(target), mode='w:gz')

os.chdir(os.path.dirname(source))

tarball = tarfile.open(name=os.path.basename(target), mode='w:gz')
tarball.add(os.path.relpath(source))
tarball.close()

0 comments on commit 6e4acd1

Please sign in to comment.