AnsweredAssumed Answered

Script working in Python window but not script tool

Question asked by gracekey09 on Jan 29, 2020
Latest reply on Jan 30, 2020 by gracekey09

I'm new to Python but am working with a very simple script to convert elevation units from meters to feet. It works in the Python window but not as a script tool. Below is my script. 


import arcpy
arcpy.env.workspace = "C:\Users\keyesge\Desktop"


inputShp = "JunctionElev"
fieldName = "RASTERVALU"
expression = "!RASTERVALU! * 3.28084"

arcpy.CalculateField_management(inputShp, fieldName, expression,"PYTHON")


Any input is appreciated.