From 317567b77a9e339b5dc9a4832b1ce4c6b045dfe7 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 21 Jun 2022 19:05:44 -0500 Subject: Improve clear_version_cache --- codegen/lib/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'codegen/lib/utils.py') diff --git a/codegen/lib/utils.py b/codegen/lib/utils.py index 3887bb35..c3d293c0 100644 --- a/codegen/lib/utils.py +++ b/codegen/lib/utils.py @@ -18,9 +18,11 @@ def to_camel_case(name: str): s = f'_{s}' return s + def upper_first_letter(name: str): return name[0].upper() + name[1:] + def padded_hex(n: int): return f'0x{n:02x}' @@ -55,4 +57,4 @@ def group_packets(packets: list[PacketIdentifier]): def get_dir_location(name: str): - return os.path.join(os.path.dirname(__file__), '..', name) + return os.path.join(os.path.dirname(os.path.dirname(__file__)), name) -- cgit v1.2.3