Dear All,
It seems that arcpy.mp does not release the lock of the resulting (new) aprx document. The following code does create a new aprx file:
aprx_project.saveACopy(os.path.join(workspace, prefix, name_to_save))
del aprx_project
Unfortunately, the lock persists on the new .aprx file. Is there any way to remove it? Only after I close the ArcGIS Pro which I use to run the script, the lock is released.
Any hints are much appreciated!
Adam
ArcGIS Pro v.2.2.2