1 Star 0 Fork 0

zeroway/portage

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
testpath 571 Bytes
一键复制 编辑 原始数据 按行查看 历史
#
# Generic testpath to source. This sets PATH and PYTHONPATH
# to use the current checkout code, before searching the main PATH, PYTHONPATH
# cd ~/.../portage
# source ./testpath
# emerge foo
# repoman manifest
# ...
if [[ "$SHELL" =~ "zsh" ]]; then
export PATH="$(dirname $0)/bin:${PATH}"
export PYTHONPATH=PYTHONPATH="$(dirname $0)/lib:${PYTHONPATH:+:}${PYTHONPATH}"
else
export PATH="$(dirname ${BASH_SOURCE[0]})/bin:${PATH}"
export PYTHONPATH=PYTHONPATH="$(dirname $BASH_SOURCE[0])/lib:${PYTHONPATH:+:}${PYTHONPATH}"
fi
export PYTHONWARNINGS=d,i::ImportWarning
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zeroway/portage.git
git@gitee.com:zeroway/portage.git
zeroway
portage
portage
master

搜索帮助