Ejemplo n.º 1
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2016 Open Permissions Platform Coalition
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software distributed under the License is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and limitations under the License.

"""Used to start the service from the parent directory using command:
    python query/
"""

from query.app import main, CONF_DIR  # pragma: no cover
from koi import commands


if __name__ == '__main__':  # pragma: no cover
    commands.cli(main, conf_dir=CONF_DIR)
Ejemplo n.º 2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2016 Open Permissions Platform Coalition
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software distributed under the License is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and limitations under the License.

"""Used to start the service from the parent directory using command:
    python template/
"""

import os
from template.app import main, CONF_DIR  # pragma: no cover
from koi import commands


if __name__ == '__main__':  # pragma: no cover
    commands_dir = os.path.join(os.path.dirname(__file__), 'commands')
    commands.cli(main, conf_dir=CONF_DIR, commands_dir=commands_dir)
Ejemplo n.º 3
0
# -*- coding: utf-8 -*-
# Copyright © 2014-2016 Digital Catapult and The Copyright Hub Foundation
# (together the Open Permissions Platform Coalition)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
"""Used to start the service from the parent directory using command:
    python accounts/
"""

import os
from accounts.app import main, CONF_DIR
from koi import commands

if __name__ == '__main__':
    commands_dir = os.path.join(os.path.dirname(__file__), 'commands')
    commands.cli(main, conf_dir=CONF_DIR, commands_dir=commands_dir)