skyline-console/skyline_console/__main__.py
Gao Hanxiang 5c09f43307 style: Move static_path into skyline_console
1. Move static_path into skyline_console to facilitate
   other modules to import.
2. Rename make build to make package

Change-Id: I7c9c5873f90b80de1203e9a38cf0ee5cc68fc42b
2021-07-15 15:03:18 -04:00

10 lines
284 B
Python

import sys
from skyline_console import static_path
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)