2014-11-16 17:08:42 +00:00
|
|
|
# This file is dual licensed under the terms of the Apache License, Version
|
|
|
|
|
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
|
|
|
|
# for complete details.
|
2014-03-14 20:03:12 +00:00
|
|
|
|
|
|
|
|
import os
|
2021-01-31 00:22:33 +00:00
|
|
|
import typing
|
2014-03-14 20:03:12 +00:00
|
|
|
|
2021-08-29 22:07:54 +00:00
|
|
|
from cryptography_vectors.__about__ import __version__
|
2014-03-14 20:03:12 +00:00
|
|
|
|
2014-03-14 19:58:07 +00:00
|
|
|
__all__ = [
|
2020-07-20 18:06:29 +00:00
|
|
|
"__version__",
|
2014-03-14 19:58:07 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
2021-01-31 00:22:33 +00:00
|
|
|
def open_vector_file(filename: str, mode: str) -> typing.IO:
|
2014-03-14 20:03:12 +00:00
|
|
|
base = os.path.dirname(__file__)
|
2014-11-27 17:50:46 +00:00
|
|
|
return open(os.path.join(base, filename), mode)
|