Select to view content in your preferred language

Python syntax error

909
1
10-07-2013 12:13 PM
ChrisBlankenship
New Contributor
I am getting a syntax error using PyScripter on this line of code:

arcpy.env.tooldataWorkspace=(C:/Temp:cab_homework_3_solution/Tooldata"")

Anyone know why?
Tags (2)
0 Kudos
1 Reply
MathewCoyle
Honored Contributor
First of all, tooldataWorkspace is not a thing. Second, you need quotes around paths. Third, your path is mangled, there should be no colons after the drive letter.

I assume you are looking for something like this.

arcpy.env.workspace = ("C:/Temp/cab_homework_3_solution/Tooldata")
0 Kudos