env.workspace treated as a string?

Discussion created by duckduck10 on Jul 30, 2012
Latest reply on Aug 1, 2012 by mdenil

Every time I try to set the workspace on my script. I get the following error:

'exceptions.AttributeError'>: 'str' object has no attribute 'workspace'

I have tried  running it on the IDE and I get the same error :

import arcpy 
from arcpy import env
arcpy.env.workspace =  "C:/Documents and Settings"

I had previously used it but for some reason now it seems like it is treating the env as a string.  Any ideas as to how to fix this?