mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix error generating ifcpatch recipes docs for Bonsai tooltips
Mentioned in https://github.com/IfcOpenShell/IfcOpenShell/issues/7667#issuecomment-4076645173 Traceback: ``` Traceback (most recent call last): File "\bonsai\bim\module\patch\prop.py", line 55, in get_ifcpatch_recipes docs = ifcpatch.extract_docs(f, "Patcher", "__init__", ("src", "file", "logger", "args")) File "\ifcpatch\__init__.py", line 168, in extract_docs spec.loader.exec_module(submodule) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "<frozen importlib._bootstrap_external>", line 1027, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "\ifcpatch/recipes/FixRevit2025TINs.py", line 31, in <module> class Patcher: ...<509 lines>... return co / self.unit_scale File "\ifcpatch/recipes/FixRevit2025TINs.py", line 168, in Patcher def create_edges(self, obj: bpy.types.Object) -> None: ^^^ NameError: name 'bpy' is not defined File "\bonsai\bim\module\patch\prop.py", line 43, in get_ifcpatch_recipes ```
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from typing import Optional, TYPE_CHECKING
|
||||
|
||||
Reference in New Issue
Block a user