Skip to content

Commit

Permalink
name fix for acronyms
Browse files Browse the repository at this point in the history
  • Loading branch information
brucezztong committed Jan 12, 2023
1 parent 17cca0f commit 6222697
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Scripts/zz2cp.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ def exportFiles( srcPath, dstPath, poiType ):
poiNameRoot = string.capwords( poiNameRoot, sep='_' )
# Append the CP prefix and suffix
poiNameRoot = "xcp_" + poiNameRoot + "_ZZTong"
# Fix unique naming issues...
poiNameRoot = poiNameRoot.replace( "_Destroyed_", "_Dest_" )
poiNameRoot = poiNameRoot.replace( "_Ems_", "_EMS_" )
poiNameRoot = poiNameRoot.replace( "_Kzmb_", "_KZMB_" )
poiNameRoot = poiNameRoot.replace( "_Kztv_", "_KZTV_" )
poiNameRoot = poiNameRoot.replace( "_Tfp_", "_TFP_" )
poiNameRoot = poiNameRoot.replace( "_Xs_", "_XS_" )

else:
poiNameRoot = srcFileName.replace( ".xml", "" )
Expand Down

0 comments on commit 6222697

Please sign in to comment.