mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
feat(tools): Added Windows shells support + refactoring
This commit is contained in:
+15
-2
@@ -5,5 +5,18 @@ function unset
|
||||
set --erase $argv
|
||||
end
|
||||
|
||||
set script_dir (dirname (realpath (status -f)))
|
||||
eval ("$script_dir"/activate.py --export)
|
||||
set idf_path (dirname (realpath (status -f)))
|
||||
|
||||
if not test -f "$idf_path/tools/idf.py"
|
||||
or not test -f "$idf_path/tools/idf_tools.py"
|
||||
or not test -f "$idf_path/tools/activate.py"
|
||||
echo "Could not detect IDF_PATH. Please set it before sourcing this script:"
|
||||
echo " export IDF_PATH=(add path here)"
|
||||
set -e idf_path
|
||||
exit 1
|
||||
end
|
||||
|
||||
source "$idf_path"/tools/detect_python.fish
|
||||
|
||||
eval ("$idf_path"/tools/activate.py --export)
|
||||
set -e idf_path
|
||||
|
||||
Reference in New Issue
Block a user