Skip to content

Instantly share code, notes, and snippets.

@robomojo
Created September 6, 2013 04:09
Show Gist options
  • Save robomojo/6459452 to your computer and use it in GitHub Desktop.
Save robomojo/6459452 to your computer and use it in GitHub Desktop.
For blender, import scripts from a separate repository
import bpy,sys
print ('calling scripts...')
filepath=bpy.path.abspath('//')
path = open(filepath+'scripts.path').readline()
sys.path.append(path)
import init
init.path=path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment