this is how ptracker determines the document folder:I think I've managed to find the problem... but not the solution. When I reinstalled Windows, the folder "My documents" has been created in C:/Users/Yohann/OneDrive. But I wanted him in D:/Documents, so I changed him of place, which needed to uninstall OneDrive.
All the other programs seem to have understand this change, but not Ptracker : in my logs, in py_log, there is this message "FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\yohan\\OneDrive\\Documents\\Assetto Corsa/logs/ptracker-exe-stdout.txt'"
If I put a folder called Assetto Corsa in C:/Users/Yohan/OneDrive, and if I put in it a copy of my folders "Logs" and "Plugins", I don't have the message "Ptracker dist return -1", but my Ptarcker seems almost invisible on my screen, so it is far from perfect...
Code:
import winreg
def expand_ac(*args):
k = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders")
v = winreg.QueryValueEx(k, "Personal")
return os.path.join(v[0], *args)
maybe you can fix the problem by fixing the registry using regedit...
I've lost many hours ...
me too