File size: 652 Bytes
852d295
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Hebrew Codenames co-pilot — engine package.

Path anchors live here so every module resolves data/assets against the project root,
regardless of the current working directory. The package sits at ``<root>/src/codenames``;
the runtime assets (``data/``, ``webapp/``, the served HTML) live at ``<root>``. In the deployed
container the same relation holds: code at ``/app/src/codenames``, assets at ``/app``.
"""

import os

# <root>/src/codenames/__init__.py  ->  <root>
PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
DATA_DIR = os.path.join(PROJECT_ROOT, "data")

__all__ = ["PROJECT_ROOT", "DATA_DIR"]