提交 b5b2a9f4 编写于 作者: L Lukáš Doktor

scripts.avocado: Include scripts directory in PATH

We need to execute avocado in simpletests, thus we need both, libexec
and scripts directories inside PATH.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 30ef3d80
......@@ -20,6 +20,7 @@ import sys
# simple magic for using scripts within a source tree
basedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if os.path.isdir(os.path.join(basedir, 'avocado')):
os.environ['PATH'] += ":" + os.path.join(basedir, 'scripts')
os.environ['PATH'] += ":" + os.path.join(basedir, 'libexec')
sys.path.append(basedir)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册