3 2g @s@ddlZddlmZddlmZddlmZddZdd ZdS) N)print_err_msg_exit) run_command) set_env_varcCs0td|\}}}|dkr,td|ddS)zCheck if darwin command existsz command -v rz> For Darwin-based operating systems (MacOS), the 'z' utility is required to run the UFS SRW Application. Reference the User's Guide for more information about platform requirements. Aborting.T)rr)cmderr_r P/lfs/h1/ops/prod/packages/aqm.v7.0.11/ush/python_utils/define_macos_utilities.py check_darwin s r cCstjddkrZtdr"tddtdr4tddtdrFtddtd rtd d n(tdd tdd tdd td ddS)z~Set some environment variables for Darwin systems differently The variables are: READLINK, SED, DATE_UTIL and LN_UTIL rZDarwinZ greadlinkZREADLINKZgsedZSEDZgdateZ DATE_UTILZglnZLN_UTILreadlinkZseddatelnN)osunamer rr r r r define_macos_utilitiess       r)r print_msgrr environmentrr rr r r r s