mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 03:10:56 +00:00
Fix circular import of json_logger when doing import ifcopenshell.validate
This commit is contained in:
@@ -1,13 +1,9 @@
|
|||||||
import os
|
import os
|
||||||
import ast
|
import ast
|
||||||
import collections
|
import collections
|
||||||
|
import ifcopenshell
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from _pytest import assertion
|
from _pytest import assertion
|
||||||
|
|
||||||
import ifcopenshell
|
|
||||||
from ifcopenshell.validate import json_logger
|
|
||||||
|
|
||||||
from codegen import indent
|
from codegen import indent
|
||||||
|
|
||||||
def reverse_compile(s):
|
def reverse_compile(s):
|
||||||
@@ -161,6 +157,7 @@ if __name__ == "__main__":
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
|
from ifcopenshell.validate import json_logger
|
||||||
|
|
||||||
filenames = [x for x in sys.argv[1:] if not x.startswith("--")]
|
filenames = [x for x in sys.argv[1:] if not x.startswith("--")]
|
||||||
flags = set(x for x in sys.argv[1:] if x.startswith("--"))
|
flags = set(x for x in sys.argv[1:] if x.startswith("--"))
|
||||||
|
|||||||
Reference in New Issue
Block a user