1 Star 0 Fork 117

lixiang/openEuler-Advisor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
develop_env.zsh 692 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/zsh
#Config environment before develop, please run: source ./develop_env.zsh
advisor_path=$(cd $(dirname $funcstack[1]); pwd)
python_paths=$(echo ${PYTHONPATH} | sed 's/:/ /g')
existed=0
for p in $python_paths
do
if [ $advisor_path = $p ]; then
existed=1
fi
done
if [ $existed -eq 0 ]; then
export PYTHONPATH=${PYTHONPATH}:${advisor_path}
fi
echo "PYTHONPATH=${PYTHONPATH}"
existed=0
for p in $fpath
do
if [ "${advisor_path}/advisors" = $p ]; then
existed=1
fi
done
if [ $existed -eq 0 ]; then
fpath+=("${advisor_path}/advisors" "${advisor_path}/command")
export PATH=${PATH}:${advisor_path}/advisors:${advisor_path}/command
fi
echo "PATH=${PATH}"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lx1229207124/openEuler-Advisor.git
[email protected]:lx1229207124/openEuler-Advisor.git
lx1229207124
openEuler-Advisor
openEuler-Advisor
master

搜索帮助