/usr/lib/python2.7/dist-packages/pyqi/interfaces/html/config/make_bash_completion.py is in pyqi 0.3.2+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #!/usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2013, The BiPy Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
__credits__ = ["Evan Bolyen"]
from pyqi.core.interfaces.html import (HTMLInputOption, HTMLDownload, HTMLPage)
from pyqi.core.interfaces.html.output_handler import newline_list_of_strings
from pyqi.core.command import (make_command_in_collection_lookup_f,
make_command_out_collection_lookup_f)
from pyqi.commands.make_bash_completion import CommandConstructor
cmd_in_lookup = make_command_in_collection_lookup_f(CommandConstructor)
cmd_out_lookup = make_command_out_collection_lookup_f(CommandConstructor)
inputs = [
HTMLInputOption(Parameter=cmd_in_lookup('command_config_module')),
HTMLInputOption(Parameter=cmd_in_lookup('driver_name')),
HTMLInputOption(Parameter=None,
Name='download-file',
Required=True,
Help='The name of the bash completion script to download. (e.g. my_file)')
]
outputs = [ HTMLDownload(Parameter=cmd_out_lookup('result'),
FilenameLookup='download-file',
FileExtension='.sh') ]
|