stdout=subprocess.PIPE)
out, err = p.communicate()
data = out.decode("utf-8").split("\n")
data = [l for l in data if l.startswith("hard linking")]
data = [l.replace("hard linking ", "") for l in data]
data = ["./" + l.split(" ->")[0] for l in data]
ignore_exts = [".pyc", ".so", ".o", "//", "~", ".gitignore", ".o.d"]
ignore_dirs = ["./build", "./dist", "./tools", "./doc", "./viewer_examples",
After Change
members = tar.getmembers()
// The very first item contains the name of the archive
top_parent = Path(members[0].name)
filenames = ["./" + str(Path(m.name).relative_to(top_parent))
for m in members[1:]]