This commit is contained in:
Andrej730
2024-06-24 11:20:04 +05:00
parent b45b0f2c81
commit 0b901bff5f
7 changed files with 23 additions and 14 deletions
@@ -1,6 +1,7 @@
# This file is generated by IfcOpenShell ifcexpressparser bootstrap.py
from __future__ import annotations
import os
import sys
import pickle
@@ -11,7 +12,7 @@ import mapping
from pyparsing import *
from nodes import *
def parse(fn):
def parse(fn: str) -> mapping.Mapping:
cache_file = fn + ".cache.dat"
if os.path.exists(cache_file) and os.path.getmtime(cache_file) >= os.path.getmtime(fn):
with open(cache_file, "rb") as f: