You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SH-Deployer/apps/SA-ITOA/bin/rest_imports_apiiconcollect...

27 lines
811 B

# Copyright (C) 2005-2016 Splunk Inc. All Rights Reserved.
"""
Shared Component - apiiconcollection
Rest api server stub for icon collection api
"""
import os.path as op
import sys
import splunk.rest.external as external
from splunk.clilib.bundle_paths import make_splunkhome_path
current_dir = op.dirname(op.abspath(__file__))
sys.path.insert(0, current_dir)
# Fixing code-clobbering issue in Splunk apps by overwriting rest.external's path variable to only this app.
external.__path__ = [current_dir]
# Ensure our libraries are always found first.
# Adding current app's lib/app_common to sys.path
sys.path.insert(1, make_splunkhome_path(['etc', 'apps', 'SA-ITOA', 'lib', 'SA_ITOA_app_common']))
# Import the custom rest handler.
from apiiconcollection.iconcollection import IconCollectionRestHandler