fix: pathing
Build and Upload Release (Windows EXE) / Build Windows EXE (release) Successful in 35s

This commit is contained in:
2026-06-12 22:07:38 -04:00
parent 30f3ab4ca5
commit 594c506dc7
2 changed files with 7 additions and 5 deletions
+3 -2
View File
@@ -2835,9 +2835,10 @@ class SteamWorkshopGUI:
# From: D:\SteamLibrary\steamapps\common\RimWorld
# To: D:\SteamLibrary\steamapps\workshop\content\294100
if "steamapps" in rimworld_path.lower():
normalized_rimworld_path = os.path.normpath(rimworld_path)
if "steamapps" in normalized_rimworld_path.lower():
# Find the steamapps part and replace common\RimWorld with workshop\content\294100
parts = rimworld_path.split(os.sep)
parts = normalized_rimworld_path.split(os.sep)
try:
steamapps_index = next(i for i, part in enumerate(parts) if part.lower() == 'steamapps')
# Build new path: everything up to steamapps + steamapps + workshop + content + 294100