2020-01-26 00:04:29 +01:00
|
|
|
# Import this class to load the standard HLDS definitions
|
|
|
|
|
|
|
|
from os import path
|
|
|
|
import itertools
|
2020-01-26 01:33:08 +01:00
|
|
|
from .parser import parse_all_directory
|
2020-01-26 00:04:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
__all__ = ["definitions"]
|
|
|
|
|
|
|
|
# TODO Use proper way to get resources, see https://stackoverflow.com/a/10935674
|
|
|
|
data_dir = path.join(path.dirname(__file__), "..", "..", "data")
|
|
|
|
|
|
|
|
location_definitions = parse_all_directory(data_dir)
|