#!/usr/bin/env python3

# (c) 2014 Brainly.com, Pawel Rozlach <pawel.rozlach@brainly.com>

# This script is intended to only find "where it is" and invoke the inventory
# tool with correct inventory path basing on it's name.

import os.path as op
import sys

# Configuration:
backend_domain = 'example.com'
ipaddress_keywords = ["tunnel_ip", ]
ipnetwork_keywords = []
inventorytool_path = '..'
inventory_path = '../test/fabric/'

# Where am I ?
cwd = op.dirname(op.realpath(__file__))

# Import inventory_tool
if inventorytool_path is not None:
    sys.path.insert(0, op.abspath(op.join(cwd, inventorytool_path)))
import inventory_tool

# Locate the inventory file:
name = op.basename(sys.argv[0]).split(".")[0] + ".yml"
inventory_path = op.abspath(op.join(cwd, inventory_path, name))

if __name__ == '__main__':
    inventory_tool.main(sys.argv,
                        inventory_path,
                        backend_domain=backend_domain,
                        extra_ipaddress_keywords=ipaddress_keywords,
                        extra_ipnetwork_keywords=ipnetwork_keywords,
                        )

@@ -23,204 +23,604 @@
 %0A%0A# 
-(c) 2014 Brainly.com, Pawel Rozlach %3Cpawel.rozlach@brainly.com%3E%0A%0A# This script is intended to only find %22where it is%22 and invoke the inventory%0A# tool with correct inventory path basing on it's nam
+Copyright (c) 2014 Pawel Rozlach, Brainly.com sp. z o.o.%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22); you may not%0A# use this file except in compliance with the License. You may obtain a copy of%0A# the License at%0A#%0A# http://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0A# License for the specific language governing permissions and limitations under%0A# the Licens
 e.%0A%0A

Add missing preamble for wrapper script