Options Files Restore Defaults via Command Line

I modified the template location via Rhino.Command "!_-Options files Templates … at Startup script. The command ran on several machines. I´d like to reset this to the default location, but I do not know how to access this without the manual button in the options menu.
It also does not allow to use %USERNAME%.
Any Ideas?

Hello - the default location is

"C:\Users\USER_NAME\AppData\Roaming\McNeel\Rhinoceros\6.0\Localization\en-US\Template Files"

-Pascal

Hi, thank for your reply. This does not work for me. I can only define the path by the USERNAME itself. What am I getting wrong?

Ok, I guess

C:\Users\%UserName%\AppData\Roaming\McNeel\Rhinoceros\6.0\Localization\en-US\Template File

does not work either. I will query the Username by another script. I´d also be fine to just call “Restore Defaults” though. Is there a way?
Thanks!

I ended up using this:

import getpass
import rhinoscriptsyntax as rs

username = getpass.getuser() #find the account username

filePath = “C:\Users\” + username + “\AppData\Roaming\McNeel\Rhinoceros\6.0\Localization\en-US\Template Files " #Set the default path for Templates
pathClean = “”%s”"%filePath #avoids errors caused by spaces in the path
rs.Command("!_-Options Files Templates " + pathClean + " _enterEnd", True) #set path to User default

Well, yes, you need to put in the actual user name…

-Pascal