test code in Blender
Packages¶
Append path¶
to test a python package
- add to path
- import and test
notes
- disappears on restart
Symlink¶
or symbolic link mklink windows - soft & hard link
notes
- stays on restart
- can create issues with git, if git tries to delete the link e.g. when changing branch
Editable install¶
editable install is the Pythonic way to symlink.
However, this doesn’t work by default with Blender. It requires the Blender pip addon
install local addon¶
to test an addon
- set up your project as a blender addon
- install a local addon, browse to the folder, and click install
reload code¶
reload tends to miss things, better to either
- restart Blender
- or delete imported module var from memory
Blender scripting tips
dev environment
TODO create local test env