blob: 7f2419d4aecba27fa73b7897575e26a5363cdf56 [file] [log] [blame]
Matteo Scandolo48d3d2d2017-08-08 13:05:27 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
A.R Karthick2e99c472017-03-22 19:13:51 -070017#
A R Karthick07608ef2016-08-23 16:51:19 -070018# Copyright 2016-present Ciena Corporation
19#
20# Licensed under the Apache License, Version 2.0 (the "License");
21# you may not use this file except in compliance with the License.
22# You may obtain a copy of the License at
A.R Karthick2e99c472017-03-22 19:13:51 -070023#
A R Karthick07608ef2016-08-23 16:51:19 -070024# http://www.apache.org/licenses/LICENSE-2.0
A.R Karthick2e99c472017-03-22 19:13:51 -070025#
A R Karthick07608ef2016-08-23 16:51:19 -070026# Unless required by applicable law or agreed to in writing, software
27# distributed under the License is distributed on an "AS IS" BASIS,
28# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29# See the License for the specific language governing permissions and
30# limitations under the License.
31#
32import os,sys
A.R Karthick2e99c472017-03-22 19:13:51 -070033import logging
34logging.getLogger('scapy.runtime').setLevel(logging.ERROR)
A R Karthick07608ef2016-08-23 16:51:19 -070035##add the python path to lookup the utils
36working_dir = os.path.dirname(os.path.realpath(sys.argv[-1]))
37utils_dir = os.path.join(working_dir, '../utils')
38fsm_dir = os.path.join(working_dir, '../fsm')
39__path__.append(utils_dir)
40__path__.append(fsm_dir)
A R Karthicke14fc022016-12-08 14:50:29 -080041cli_dir = os.path.join(working_dir, '../cli')
42__path__.append(cli_dir)