blob: b2581e2e16b88551de8229d1e032003a01796f08 [file] [log] [blame]
A R Karthick10fe00e2016-07-12 16:13:16 -07001#
Chetan Gaonkercfcce782016-05-10 10:10:42 -07002# Copyright 2016-present Ciena Corporation
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
A R Karthick10fe00e2016-07-12 16:13:16 -07007#
Chetan Gaonkercfcce782016-05-10 10:10:42 -07008# http://www.apache.org/licenses/LICENSE-2.0
A R Karthick10fe00e2016-07-12 16:13:16 -07009#
Chetan Gaonkercfcce782016-05-10 10:10:42 -070010# 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#
Chetan Gaonkerb424ff82016-03-08 12:11:12 -080016import os,sys
A.R Karthick2e99c472017-03-22 19:13:51 -070017import logging
18logging.getLogger('scapy.runtime').setLevel(logging.ERROR)
Chetan Gaonkerb424ff82016-03-08 12:11:12 -080019##add the python path to lookup the utils
20working_dir = os.path.dirname(os.path.realpath(sys.argv[-1]))
21utils_dir = os.path.join(working_dir, '../utils')
22fsm_dir = os.path.join(working_dir, '../fsm')
A R Karthick10fe00e2016-07-12 16:13:16 -070023subscriber_dir = os.path.join(working_dir, '../subscriber')
Chetan Gaonkerb424ff82016-03-08 12:11:12 -080024__path__.append(utils_dir)
25__path__.append(fsm_dir)
A R Karthick10fe00e2016-07-12 16:13:16 -070026__path__.append(subscriber_dir)
A R Karthicke14fc022016-12-08 14:50:29 -080027cli_dir = os.path.join(working_dir, '../cli')
28__path__.append(cli_dir)