Skip to content

Commit

Permalink
Refactor entrypoint.py to use pathlib for file path and upload resour…
Browse files Browse the repository at this point in the history
…ces to ROHub
  • Loading branch information
cedricdcc committed Sep 23, 2024
1 parent e911d6c commit 3f629c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def main():
zipf.close()

# add the zip file to the ro project
path_to_zip = pd / "demo_rohub.zip"
# make sure pd is a pathlib object
path_to_zip = pathlib.Path(pd) / "demo_rohub.zip"
rohub.ros_upload_resources(rohub_id, path_to_zip)

# delete the zip file
Expand Down

0 comments on commit 3f629c8

Please sign in to comment.