# lawref.resources

*module*

Resource locations shared by source checkout and installed oracle.

Normative bytes live in spec/schema and packs/verb in the source tree.
The public export maps those exact files into package data; no generated
or hand-maintained second copy is kept in the repository.

## lawref.resources.DATA_DIR

*attribute* · *module attribute*

```python
DATA_DIR = PACKAGE_DIR / '_data'
```

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/resources.py#L14-L14)

## lawref.resources.PACKAGE_DIR

*attribute* · *module attribute*

```python
PACKAGE_DIR = Path(__file__).resolve().parent
```

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/resources.py#L12-L12)

## lawref.resources.REPO_ROOT

*attribute* · *module attribute*

```python
REPO_ROOT = PACKAGE_DIR.parents[2]
```

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/resources.py#L13-L13)

## lawref.resources.cache_dir

*function*

```python
def cache_dir() -> Path
```

Installed packages never write into site-packages or its ancestors.

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/resources.py#L34-L41)

## lawref.resources.default_verb_pack

*function*

```python
def default_verb_pack() -> Path
```

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/resources.py#L29-L31)

## lawref.resources.schema_dir

*function*

```python
def schema_dir() -> Path
```

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/resources.py#L17-L19)

## lawref.resources.unit_conventions_path

*function*

```python
def unit_conventions_path() -> Path
```

Словарь единиц деления меры [§33.1](https://github.com/arxohq/law/blob/master/spec/SPEC.ru/07-part-vii-source-and-document-model.ru.md#331-formalization-coverage) (errata E-0249, DECISION-0383): один
файл на обе реализации, `law-measure` читает те же байты.

[View source](https://github.com-arxohq/arxo-io/law/blob/2edc2b92ce22b52e03f4081d2769a58229684379/engines/lawref/lawref/resources.py#L22-L26)
