未验证 提交 81b93ebb 编写于 作者: Z zhangbo9674 提交者: GitHub

fix python module not found bug (#47438)

* fix python module not found bug

* delete unused cast,test=allcases
上级 d4b68daf
......@@ -2857,7 +2857,6 @@ function parallel_test() {
cd ${PADDLE_ROOT}/build
pip install hypothesis
pip install ${PADDLE_ROOT}/build/python/dist/*whl
cp ${PADDLE_ROOT}/build/python/paddle/fluid/tests/unittests/op_test.py ${PADDLE_ROOT}/build/python
cp ${PADDLE_ROOT}/build/python/paddle/fluid/tests/unittests/testsuite.py ${PADDLE_ROOT}/build/python
cp -r ${PADDLE_ROOT}/build/python/paddle/fluid/tests/unittests/white_list ${PADDLE_ROOT}/build/python
ut_total_startTime_s=`date +%s`
......
......@@ -18,9 +18,8 @@
import os
if os.name == 'nt':
import sys
import sys
dirname, filename = os.path.split(os.path.abspath(__file__))
sys.path.insert(0, dirname)
print(sys.path)
dirname, filename = os.path.split(os.path.abspath(__file__))
sys.path.insert(0, dirname)
print(sys.path)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册