Printing Parameter Values returning Unexpected Result, Python -


i have following python script snidbit:

inlines = sys.argv[0]  arcpy.addmessage(inlines) 

the input parameter multivalue input whereby user can navigate file locations , choose multiple files input.

when print out variable, follwoing:

y:\2012_data\infrastructure.gdb\buildings;'z:\data 2009\base.gdb\creeks_utm';'z:\data 2009\base.gdb\lakes_utm'

notice on z:drive, returning path single quotes around it, whereas y:drive not. believe caused spaces in z:drive paths. there way force z:drive paths return without quotes?

thanks, mike

i managed solve issue. python handles parameters differently because of path names. in first parameter, there no spaces in file path. in other 2 parameters, there spaces. python doesn't spaces, forces file path string value. wrote code override this.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -