mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Don't clone in windows dev setup, also don't use appdata since it will run as root
This commit is contained in:
@@ -1,21 +1,22 @@
|
||||
@echo off
|
||||
|
||||
rem SETUP BLENDER-BIM LIVE DEVELOPMENT ENVIRONMENT
|
||||
rem Update BLENDER_VERSION, PYTHON_VERSION, BBIM_REPO in the script bellow.
|
||||
rem Put the script to the folder where IfcOpenShell git repository is located
|
||||
rem (script will try to clone IfcOpenShell.git if it's not present).
|
||||
rem SETUP BLENDERBIM ADD-ON LIVE DEVELOPMENT ENVIRONMENT
|
||||
rem Update BLENDER, BLENDER_VERSION, PYTHON_VERSION, BBIM_REPO in the script bellow.
|
||||
rem Put the script at the root of your IfcOpenShell git repository
|
||||
rem This script needs to be run as administrator (to create symbolic links)
|
||||
rem Make sure you have followed these steps before proceeding :)
|
||||
|
||||
pause
|
||||
|
||||
SET BLENDER_VERSION=4.2
|
||||
SET PYTHON_VERSION=3.11
|
||||
SET BBIM_REPO=user_default
|
||||
|
||||
SET BLENDER=%appdata%\Blender Foundation\Blender\%BLENDER_VERSION%
|
||||
SET BLENDER=C:\Users\X\AppData\Roaming\Blender Foundation\Blender\%BLENDER_VERSION%
|
||||
SET BLENDER_LOCAL=%BLENDER%\extensions\.local\lib\python%PYTHON_VERSION%\site-packages
|
||||
SET BLENDERBIM=%BLENDER_LOCAL%\blenderbim
|
||||
SET BLENDER_EXT=%BLENDER%\extensions\%BBIM_REPO%\blenderbim
|
||||
|
||||
git clone https://github.com/IfcOpenShell/IfcOpenShell.git
|
||||
cd IfcOpenShell
|
||||
|
||||
echo Removing the Blender add-on Python code...
|
||||
del "%BLENDER_EXT%\__init__.py"
|
||||
rd /S /Q "%BLENDERBIM%"
|
||||
|
||||
Reference in New Issue
Block a user