AnsweredAssumed Answered

env.workspace - how to navigate "up" one folder?

Question asked by j256 on Mar 25, 2013
Latest reply on Mar 25, 2013 by mzcoyle
I am familiar with setting the env.workspace parameter in arcpy. That allows me to work within subfolders of the workspace, eg:

layer = arcpy.mapping.Layer("Sub\Test.shp")


But how do I do the opposite, ie go up one level in the folder tree?

This doesn't work:

layer = arcpy.mapping.Layer("..\Test.shp")


Is there an easy way to go up a level from the workspace path? Or is it not possible?

Thanks

Outcomes