Files
UnrealEngineUWP/Engine/Source/ThirdParty/CEF3/fix_drop.py
josh adams 325c2bc02f - Updating CEF to v90 (in prep for getting M1 version checked in)
#rb alfred.reynolds
#preflight skip (too big for horde)

[CL 20435886 by josh adams in ue5-main branch]
2022-05-31 08:44:08 -04:00

20 lines
652 B
Python

#
# Helper script to reopen any files added in exclusive mode as normal files instead (we don't want locking)
#
import os, io
import subprocess
print("Checking for files opened in exclusive mode...")
result = subprocess.Popen(['p4', 'opened', '...'], stdout=subprocess.PIPE)
for line in io.TextIOWrapper(result.stdout, encoding="utf-8"):
if "*exclusive*" in line:
exlFile = line.split("#")[0]
print(exlFile)
fileType = "binary"
if "resource..h" in exlFile:
fileType = "text"
subprocess.run(['p4', 'revert', exlFile])
subprocess.run(['p4', 'add', '-t', fileType, exlFile])
print("Done")