Skip to content

Commit

Permalink
installer fix Linux Documents folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Die4Ever committed Oct 10, 2023
1 parent 291403f commit e38fffb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion installer/Install/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def GetSourcePath() -> Path:
def GetSteamPlayDocuments(system:Path) -> Path:
if 'Steam' in system.parts:
idx = system.parts.index('Steam')
p = system.parents[-idx -1] # parents array is backwards
idx = len(system.parents) - idx - 1 # parents array is backwards
p = system.parents[idx]
info('GetSteamPlayDocuments() == ', p)
p = p /'steamapps'/'compatdata'/'6910'/'pfx'/'drive_c'/'users'/'steamuser'/'Documents'
info('GetSteamPlayDocuments() == ', p)
Expand Down

0 comments on commit e38fffb

Please sign in to comment.