blob: f9668ba9b0c009c6b6ac224caa3c30102fe168b8 [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
ChetanGaonkerf0dd5bb2016-07-28 16:22:06 -070017#
18# 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
23#
24# http://www.apache.org/licenses/LICENSE-2.0
25#
26# 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)
ChetanGaonkerf0dd5bb2016-07-28 16:22:06 -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')
39cli_dir = os.path.join(working_dir, '../cli')
40subscriber_dir = os.path.join(working_dir, '../subscriber')
41__path__.append(utils_dir)
42__path__.append(fsm_dir)
43__path__.append(cli_dir)
44__path__.append(subscriber_dir)