ソースを参照

🔨 Fix LPC1768 autodetect path on Linux (#24773)

Renaud11232 1年前
コミット
7d08ab4fb7
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      Marlin/src/HAL/LPC1768/upload_extra_script.py

+ 1
- 1
Marlin/src/HAL/LPC1768/upload_extra_script.py ファイルの表示

73
                 #
73
                 #
74
                 import getpass
74
                 import getpass
75
                 user = getpass.getuser()
75
                 user = getpass.getuser()
76
-                mpath = Path('media', user)
76
+                mpath = Path('/media', user)
77
                 drives = [ x for x in mpath.iterdir() if x.is_dir() ]
77
                 drives = [ x for x in mpath.iterdir() if x.is_dir() ]
78
                 if target_drive in drives:  # If target drive is found, use it.
78
                 if target_drive in drives:  # If target drive is found, use it.
79
                     target_drive_found = True
79
                     target_drive_found = True

読み込み中…
キャンセル
保存