Hanxiang Gao 4eb68e7fb2 feat: Add initial code of skyline-console
Add initial code of skyline-console

Change-Id: Icba2152a014761f53789357b5085d0779cd0e2a4
2021-06-01 23:29:30 +08:00

13 lines
364 B
Python

import sys
from pathlib import Path
import skyline_console
static_path = Path(skyline_console.__file__).parent.joinpath("static")
if static_path.joinpath("index.html").exists():
print(f'Static resource directory of "skyline-console" is:\n{str(static_path)}')
else:
print('Error, "skyline-console" doesn\'t contain any static resources')
sys.exit(1)