AnsweredAssumed Answered

Script tool Data List paths

Question asked by jehall on Jun 19, 2013
Latest reply on Jun 20, 2013 by jehall
Is there a better way to use the multivalue property in a script tool?  This code works except when the paths to folders have spaces.

# Script arguments CensusDataList = string.split(arcpy.GetParameterAsText(0), ";")  #Loop through each state directory in the list to create an input value. for CensusState in CensusDataList:     CensusFeaturePath = CensusState + "\\bndrygbs.mdb\\hzCounty"     hzCounty_Inputs = hzCounty_Inputs + ";" + CensusFeaturePath 

If the paths for  CensusDataList are something like:
Path 1 
Path 2
I get  'Path 1';'Path 2' for the list.

If the paths are something like:
I get Path1;Path2 for the list.