Thoughts and tutorials on programming

Tuesday, October 31, 2006

how to import external modules

Say module is in e:\blender\shared\folder\file.py
in blender do (in a script)
sys.path.append("e:\\blender\\shared")
then from folder.file import whateverStuffYouWantLikeFunctionNames

Good luck!

1 comment:

Roger Pack said...

Also it seems that as of now, you cannot "import" code from other blender text objects, into one text object. If you wanna share code, gotta have it outside the file system :-)

Contributors

Followers