I'm new to Python. I try to access my 'current' project but I keep getting an error:
Traceback (most recent call last):
File "C:\Users\...\test.py", line 6, in <module>
aprx = arcpy.mp.ArcGISProject('CURRENT')
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\_mp.py", line 344, in __init__
self._arc_object = arcgisscripting._mapping.ArcGISProject(*gp_fixargs((aprx_path,), True))
OSError: CURRENT
I tried using upper and lower case single and double quote.
Here is the 1st part of my code.
#-*- coding: utf-8 -*-
import arcpy
aprx = arcpy.mp.ArcGISProject('CURRENT')