🔨 Fix LPC1768 autodetect path on Linux (#24773)
This commit is contained in:
parent
5ee74668cf
commit
d9967f5395
@ -73,7 +73,7 @@ if pioutil.is_pio_build():
|
|||||||
#
|
#
|
||||||
import getpass
|
import getpass
|
||||||
user = getpass.getuser()
|
user = getpass.getuser()
|
||||||
mpath = Path('media', user)
|
mpath = Path('/media', user)
|
||||||
drives = [ x for x in mpath.iterdir() if x.is_dir() ]
|
drives = [ x for x in mpath.iterdir() if x.is_dir() ]
|
||||||
if target_drive in drives: # If target drive is found, use it.
|
if target_drive in drives: # If target drive is found, use it.
|
||||||
target_drive_found = True
|
target_drive_found = True
|
||||||
|
Loading…
Reference in New Issue
Block a user