HI, I am looking for the best practice way to make my script run in ArcGIS Pro and Exterprise portal without modification - specifically getting the gis().
The user will be already logged in and have an active portal before running the script.
At the moment I use gis("home") when using portal and gis("Pro") when using Arc Pro
is there a test I can use to determine whether the script is running in in Pro or Portal so I can choose?
Alternatively, is there a different approach I should be using?
Thanks,
Ian