We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0703db2 commit 1a7fd01Copy full SHA for 1a7fd01
tools/idf_tools.py
@@ -89,13 +89,16 @@
89
class WindowsError(OSError): # type: ignore
90
pass
91
92
+from platformio.project.config import ProjectConfig
93
94
TOOLS_FILE = 'tools/tools.json'
95
TOOLS_SCHEMA_FILE = 'tools/tools_schema.json'
96
TOOLS_FILE_NEW = 'tools/tools.new.json'
97
IDF_ENV_FILE = 'idf-env.json'
98
TOOLS_FILE_VERSION = 3
-IDF_TOOLS_PATH_DEFAULT = os.path.join('~', '.platformio')
99
+PROJECT_CORE_DIR=ProjectConfig.get_instance().get("platformio", "core_dir")
100
+IDF_TOOLS_PATH=os.path.join(PROJECT_CORE_DIR)
101
+IDF_TOOLS_PATH_DEFAULT = IDF_TOOLS_PATH
102
UNKNOWN_VERSION = 'unknown'
103
SUBST_TOOL_PATH_REGEX = re.compile(r'\${TOOL_PATH}')
104
VERSION_REGEX_REPLACE_DEFAULT = r'\1'
0 commit comments