forked from platformio/platformio-core
@ -78,9 +78,11 @@ def get_default_projects_dir():
|
|||||||
except: # pylint: disable=bare-except
|
except: # pylint: disable=bare-except
|
||||||
if not IS_MACOS:
|
if not IS_MACOS:
|
||||||
try:
|
try:
|
||||||
docs_dir = subprocess.check_output(
|
docs_dir = (
|
||||||
["xdg-user-dir", "DOCUMENTS"]
|
subprocess.check_output(["xdg-user-dir", "DOCUMENTS"])
|
||||||
).decode("utf-8")
|
.decode("utf-8")
|
||||||
|
.strip()
|
||||||
|
)
|
||||||
except FileNotFoundError: # command not found
|
except FileNotFoundError: # command not found
|
||||||
pass
|
pass
|
||||||
return os.path.join(docs_dir, "PlatformIO", "Projects")
|
return os.path.join(docs_dir, "PlatformIO", "Projects")
|
||||||
|
Reference in New Issue
Block a user