Don't clone in windows dev setup, also don't use appdata since it will run as root

This commit is contained in:
Dion Moult
2024-07-25 22:51:05 +10:00
parent 91f4427bb5
commit aae160b568
@@ -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%"