blob: 8c357f6afc3d3f65c7e7d1426196dac6170ed3c6 [file] [log] [blame]
Zack Williams821c5022020-01-15 15:11:46 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15from __future__ import absolute_import
16
17import os
18
19from .CORDDictUtils import CORDDictUtils
20from .restApi import restApi
21from .testCaseUtils import TestCaseUtils
22
23
24# return the library version
25def _version_():
26 with open(os.path.join(os.path.dirname(__file__), "VERSION")) as f:
27 return f.read().strip()
28
29
30# Inherit all the other sub-classes
31class CORDRobot(CORDDictUtils, restApi, TestCaseUtils):
32
33 ROBOT_LIBRARY_SCOPE = "GLOBAL"
34
35 def cr_version(self):
36 return _version_()