Skip to content

Commit

Permalink
Use relative path to python file for asn1 cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ties committed Apr 28, 2024
1 parent 77bd7bc commit 794e28c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rrdp_tools/rpki.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@

LOG = logging.getLogger(__name__)

asn1_src = Path(__file__).parent / "rfc9286.asn"
THIS_DIR = Path(__file__).parent

asn1_src = THIS_DIR / "rfc9286.asn"
assert asn1_src.exists()
RFC_9286_ASN1 = asn1tools.compile_files(str(asn1_src), cache_dir="asn1")
RFC_9286_ASN1 = asn1tools.compile_files(str(asn1_src), cache_dir=str(THIS_DIR / "asn1"))


@dataclass
Expand Down

0 comments on commit 794e28c

Please sign in to comment.