未验证 提交 2ea23239 编写于 作者: K Kaipeng Deng 提交者: GitHub

set highest import priority for current dir (#4020)

上级 0981e4ca
......@@ -20,8 +20,7 @@ import os
import sys
# add python path of PadleDetection to sys.path
parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2)))
if parent_path not in sys.path:
sys.path.append(parent_path)
sys.path.insert(0, parent_path)
from ppdet.utils.logger import setup_logger
logger = setup_logger('ppdet.anchor_cluster')
......
......@@ -21,8 +21,7 @@ import sys
# add python path of PadleDetection to sys.path
parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2)))
if parent_path not in sys.path:
sys.path.append(parent_path)
sys.path.insert(0, parent_path)
# ignore warning log
import warnings
......
......@@ -21,8 +21,7 @@ import sys
# add python path of PadleDetection to sys.path
parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2)))
if parent_path not in sys.path:
sys.path.append(parent_path)
sys.path.insert(0, parent_path)
# ignore warning log
import warnings
......
......@@ -21,8 +21,7 @@ import sys
# add python path of PadleDetection to sys.path
parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2)))
if parent_path not in sys.path:
sys.path.append(parent_path)
sys.path.insert(0, parent_path)
# ignore warning log
import warnings
......
......@@ -21,8 +21,7 @@ import sys
# add python path of PadleDetection to sys.path
parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2)))
if parent_path not in sys.path:
sys.path.append(parent_path)
sys.path.insert(0, parent_path)
# ignore warning log
import warnings
......
......@@ -21,8 +21,7 @@ import sys
# add python path of PadleDetection to sys.path
parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2)))
if parent_path not in sys.path:
sys.path.append(parent_path)
sys.path.insert(0, parent_path)
# ignore warning log
import warnings
......
......@@ -21,8 +21,7 @@ import sys
# add python path of PadleDetection to sys.path
parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2)))
if parent_path not in sys.path:
sys.path.append(parent_path)
sys.path.insert(0, parent_path)
# ignore warning log
import warnings
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册