Add github issues integration (#110)

This commit is contained in:
bmc-msft
2020-10-07 11:54:43 -04:00
committed by GitHub
parent 16331fca2e
commit 9df3b5d49a
12 changed files with 276 additions and 27 deletions

View File

@ -16,8 +16,8 @@ from .__version__ import __version__
def read_local_file(filename: str) -> str:
path = os.path.join(os.path.dirname(os.path.realpath(__file__)), filename)
if os.path.exists(path):
with open(path, "rb") as handle:
return handle.read().strip().decode("utf-16")
with open(path, "r") as handle:
return handle.read().strip()
else:
return "UNKNOWN"