blob: 038b5c88d1172ae8a07e20bc5cbc5c65b76a6658 [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
Anil Kumar Sanka1e535c72016-12-21 17:39:20 -080017#
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)
Anil Kumar Sanka1e535c72016-12-21 17:39:20 -080035##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')
39subscriber_dir = os.path.join(working_dir, '../subscriber')
40__path__.append(utils_dir)
41__path__.append(fsm_dir)
42__path__.append(subscriber_dir)
43cli_dir = os.path.join(working_dir, '../cli')
44__path__.append(cli_dir)