I have inherited a Python script that mosaics many files in 10.3. I normally run using IDLE outside 10.3.
I don't code at all but am trying to learn so I can move the code to ArcGIS Pro to ensure we stay up to date. I have learned to convert what I have from python 2.7 to 3.6 successfully.
Based on what I have read it is better to run code outside of Pro to speed processes up if there is no need to have GIS open. Therefore I am wanting to run the code as such.
I have read as much as I can comprehend on conda environment and running the script through a .bat file. However if I simply go to my code and right click I have the option of: Edit with Idle, Edit with Idle (Pro) and Run with ArcGIS Pro. If I choose Edit with Idle (Pro) to open the script and click run, the process runs fine.
Did it run via Pro?
How would I know other than what I right clicked to start the process has the word Pro in it?
Does this mean I can skip the whole conda or .bat usage (both were giving me errors on start up so I hope so!)?
sys
class can tell you if you're using Python 2.7 or 3.x (seesys.version_info
)