opus-nt/mods/[all]/enable long paths/modscript.py

4 lines
258 B
Python
Raw Normal View History

2022-03-04 05:36:43 +00:00
for key in opusnt.regQueryKeys(opusnt.regTmpPath + "system"):
if key.lower().startswith(opusnt.regTmpPath.lower() + "system\\controlset"):
opusnt.runReg(["add",key+ "\\Control\\FileSystem","/v","LongPathsEnabled","/t","REG_DWORD","/d","0x00000001","/f"])