Skip to content

Is there a way to distribute libraries that use basilisp? #1206

Answered by ikappaki
zachcp asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @zachcp,

Let's take a step back and establish a common understanding of Python's import behavior and its relevance to Blender and Basilisp.

Using basimol virtual environment in Blender

Premise 1:

To import a Python package, its directory must be a subpath of a directory in sys.path.

Step 1: Check Blender’s sys.path

I've installed Blender 4.3.2 on macOS and checked its sys.path in Blender scripting tab:

PYTHON INTERACTIVE CONSOLE 3.11.9 (main, Aug  1 2024, 14:06:12) [Clang 15.0.0 (clang-1500.1.0.2.5)]

Builtin Modules:       bpy, bpy.data, bpy.ops, bpy.props, bpy.types, bpy.context, bpy.utils, bgl, gpu, blf, mathutils
Convenience Imports:   from mathutils import *; from math import *
Co…

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@zachcp
Comment options

@zachcp
Comment options

@zachcp
Comment options

@zachcp
Comment options

@zachcp
Comment options

Answer selected by zachcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants