Skip to content

Commit 39333b9

Browse files
kolibril13claude
andcommitted
Remove add_current_module_to_path (sys.path manipulation)
Manually modifying sys.path is disallowed on the Blender Extensions Platform as it can break the Python environment for other add-ons. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent c01b00c commit 39333b9

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

typst_importer/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from .utils import add_current_module_to_path
21
import bpy
32

43

@@ -259,9 +258,6 @@ def menu_func_import(self, context):
259258

260259

261260
def register():
262-
# Add the current module to Python's path to ensure imports work correctly
263-
add_current_module_to_path()
264-
265261
# Register Blender classes
266262
bpy.utils.register_class(OBJECT_OT_align_to_active)
267263
bpy.utils.register_class(OBJECT_OT_align_collection)

typst_importer/utils.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)