Skip to content

Commit

Permalink
changed script to detect platform as the function may not work for al…
Browse files Browse the repository at this point in the history
…l posix systems
  • Loading branch information
anniexiang01 committed Oct 10, 2024
1 parent 165c8ab commit 3b6143e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/deploy_to_usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import subprocess
import sys
import os
import platform
import shutil


Expand Down Expand Up @@ -51,7 +52,7 @@ def find_mount_points_with_names():
drives.append((drive, drive_name))
return drives

elif os.name == "posix":
elif platform.system() == "Darwin":

def find_mount_points_with_names():
drives = []
Expand Down

0 comments on commit 3b6143e

Please sign in to comment.