Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
Add missing substance paths for windows steam versions
Browse files Browse the repository at this point in the history
passivestar committed Nov 19, 2023
1 parent 516f942 commit 25fd42b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

bl_info = {
'name': 'Substance Import-Export Tools',
'version': (1, 3, 13),
'version': (1, 3, 14),
'author': 'passivestar',
'blender': (4, 0, 0),
'location': '3D View N Panel',
@@ -38,11 +38,13 @@ def detect_substance_painter_path():
f'{letter}:\\Program Files (x86)\\Adobe\\Adobe Substance 3D Painter\\Adobe Substance 3D Painter.exe', # Windows
f'{letter}:\\Program Files\\Steam\\steamapps\\common\\Substance Painter\\Adobe Substance 3D Painter.exe' # Windows Steam
f'{letter}:\\Program Files (x86)\\Steam\\steamapps\\common\\Substance Painter\\Adobe Substance 3D Painter.exe' # Windows Steam
f'{letter}:\\Program Files (x86)\\Steam\\steamapps\\common\\Substance 3D Painter\\Adobe Substance 3D Painter.exe' # Windows Steam
])
for year in range(2020, 2026):
paths.extend([
f'{letter}:\\Program Files\\Adobe\\Adobe Substance 3D Painter {year}\\Adobe Substance 3D Painter.exe', # Windows
f'{letter}:\\Program Files (x86)\\Steam\\steamapps\\common\\Substance Painter {year}\\Adobe Substance 3D Painter.exe' # Windows Steam
f'{letter}:\\Program Files (x86)\\Steam\\steamapps\\common\\Substance 3D Painter {year}\\Adobe Substance 3D Painter.exe' # Windows Steam
])

# Check each path for the current operating system and return the first one that exists

0 comments on commit 25fd42b

Please sign in to comment.