robotframework 自定义库导入 modulenotfounderror

robot执行是环境变量使用的不是syspath

将当前py文件添加到环境变量中需要使用  robotframework 内置OperatingSystem库

 

通过 OperatingSystem().append_to_environment_variable('path',os.path.dirname(__file__)) 方法将当前环境变量中

posted @ 2020-09-01 16:49  delinem  阅读(349)  评论(0编辑  收藏  举报