I want to access to a directory and set that as a arcpy.env.workspace in my Python Script Tool. However, this workspace depends on users so I cannot just use my own folders.
Is there a way to access Home directory (where .mxd file is saved) in arcpy?
I tried retrieving the directory from os.getcwd but that refers to "c:\windows\system32" where ArcMap is accessing.