#!/usr/bin/env python #============================================================================== # Copyright and license info is available in the LICENSE file included with # the Server Deployment Package (SDP), and also available online: # https://swarm.workshop.perforce.com/projects/perforce-software-sdp/view/main/LICENSE #------------------------------------------------------------------------------ # # Trigger table entry: # block_p4exp command pre-user-fstat "/p4/common/bin/triggers/block_p4exp.py %clientprog%" import sys import re prog=sys.argv[1] if re.search("P4EXP", prog): print("P4EXP is not allowed. Please upgrade to the current version of P4V.") sys.exit(1) else: sys.exit(0) ~