I have script a.py that have one line:
arcpy.env.workspace = r"C:\temp"
I am running this script with the line:
proc = subprocess.Popen([r"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe", r"D:\temp\a.py"])
When I run it from the python window in Pro 3.1 it runs with no error.
When I create script b.py that have only this line and make a tool out of it I get the error the GPEnvironment
have no method workspace
This works good in Pro 2.X
Thanks
Mody