| 1 |
#!/usr/bin/env python3 |
| 2 |
# -*- mode: python -*- |
| 3 |
# -*- coding: utf-8 -*- |
| 4 |
|
| 5 |
# Licensed to the Apache Software Foundation (ASF) under one |
| 6 |
# or more contributor license agreements. See the NOTICE file |
| 7 |
# distributed with this work for additional information |
| 8 |
# regarding copyright ownership. The ASF licenses this file |
| 9 |
# to you under the Apache License, Version 2.0 (the |
| 10 |
# "License"); you may not use this file except in compliance |
| 11 |
# with the License. You may obtain a copy of the License at |
| 12 |
# |
| 13 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 14 |
# |
| 15 |
# Unless required by applicable law or agreed to in writing, software |
| 16 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 17 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 |
# See the License for the specific language governing permissions and |
| 19 |
# limitations under the License. |
| 20 |
|
| 21 |
__all__ = ('schema', 'io', 'datafile', 'protocol', 'ipc') |
| 22 |
|
| 23 |
|
| 24 |
import os |
| 25 |
|
| 26 |
|
| 27 |
def LoadResource(name): |
| 28 |
dir_path = os.path.dirname(__file__) |
| 29 |
rsrc_path = os.path.join(dir_path, name) |
| 30 |
with open(rsrc_path, 'r') as f: |
| 31 |
return f.read() |
| 32 |
|
| 33 |
|
| 34 |
VERSION = LoadResource('VERSION.txt').strip() |