diff options
| author | mat <github@matdoes.dev> | 2022-05-27 01:11:42 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-27 01:11:42 -0500 |
| commit | 68ab3d65247c02d469d77e5702f57e46f690965b (patch) | |
| tree | 0bf5e7e4950fd82c0e1848b95c0ab0a3bcbdf2d2 /codegen/lib/utils.py | |
| parent | 7743bb1a84020752d49d1b308da6cc93f7254e80 (diff) | |
| download | azalea-drasl-68ab3d65247c02d469d77e5702f57e46f690965b.tar.xz | |
Fix codegen more
Diffstat (limited to 'codegen/lib/utils.py')
| -rw-r--r-- | codegen/lib/utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/codegen/lib/utils.py b/codegen/lib/utils.py index c185c0e5..77a7b2d4 100644 --- a/codegen/lib/utils.py +++ b/codegen/lib/utils.py @@ -1,4 +1,5 @@ import re +import os # utilities that could be used for things other than codegen @@ -44,3 +45,7 @@ def group_packets(packets: list[PacketIdentifier]): packet_groups[key] = [] packet_groups[key].append(packet.packet_id) return packet_groups + + +def get_dir_location(name: str): + return os.path.join(os.path.dirname(__file__), '..', name) |
