Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Joram Agten committed Jun 30, 2024
1 parent dd7357f commit 598410d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fri3d/fri3d_application/src/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
parser.add_argument('directory', help='The directory to package')
parser.add_argument('outfile', help='The output file')


def write_bytes(f, name, data):
f.write(f"const uint8_t {name}[] = {{\n")

Expand Down Expand Up @@ -53,9 +54,7 @@ def write_bytes(f, name, data):
for name in files:
if any(regex.match(name) for regex in whitelist):
file = os.path.join(root, name)
arcname = os.path.relpath(os.path.join(root, name), start=args.directory)
print("adding file:", arcname)
tar.add(file, arcname=arcname)
tar.add(file, arcname=os.path.relpath(file, start=args.directory))

tar.close()

Expand Down

0 comments on commit 598410d

Please sign in to comment.