Skip to content

Instantly share code, notes, and snippets.

@AlansCodeLog
Last active September 18, 2019 21:08
Show Gist options
  • Save AlansCodeLog/bbc68ccda7aa569ccc02e454e8fb1f85 to your computer and use it in GitHub Desktop.
Save AlansCodeLog/bbc68ccda7aa569ccc02e454e8fb1f85 to your computer and use it in GitHub Desktop.
Blender as a Python Module Install Script #blender #builds
REM To use: Copy to build folder. Run "install YOURPYTHONPATH PYTHONVERSION BLENDERVERSION" e.g. "install C:\Python36 36 2.79"
REM No backslash after path.
set pypath=%1
set pyversion=%2
set version=%3
copy bin\Release\bpy.pyd %pypath%\Lib\site-packages\
copy bin\Release\*.dll %pypath%\Lib\site-packages\
del %pypath%\Lib\site-packages\python%pyversion%.dll
xcopy /E bin\Release\%version% %pypath%\%version%\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment