I'm working on a Python script that is heavily utilizing Network Analyst tools. I understand that dot notation is used to call methods from a class, but don't really get why/how ArcPy functions appear to be callable with different syntaxes. Example:
import arcpy
from arcpy import na
# what is the difference between this:
arcpy.na.CopyTraversedSourceFeatures(routeLyr, gdb, edges, junctions, turns)
#and this:
arcpy.CopyTraversedSourceFeatures_na(routeLyr, gdb, edges, junctions, turns)
Both syntaxes appear to behave the same when running from the Python window in an ArcMap session, but will these behave differently when running from a different environment, such as a script tool or a batch file run in Task Scheduler?