Skip to content

Commit 008426b

Browse files
authored
Merge pull request #791 from tetov/check_blender_path
Check if blender path exists
2 parents d42fbd8 + ba751aa commit 008426b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/compas_blender/install.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ def install(blender_path):
6262
print('Conda environment not found. The installation into Blender requires an active conda environment with a matching Python version to continue.')
6363
sys.exit(-1)
6464

65+
if not os.path.exists(blender_path):
66+
raise FileNotFoundError('Blender version folder not found.')
67+
6568
path, version = os.path.split(blender_path)
6669

6770
print('Installing COMPAS for Blender {}'.format(version))

0 commit comments

Comments
 (0)