matthiasBuehler

Changes in imported arcPy modules

Discussion created by matthiasBuehler on Sep 3, 2016
Latest reply on Sep 3, 2016 by Dan_Patterson

Hi,

 

when using imported modules and one of the modules changes, ArcGIS PRO does not reflect that change, but runs the old version. it seems to cache it somehow.

 

the only way to get the changes to run is to restart PRO.

 

py script 1 that is actually run via toolbox:

import myFile

myFile.runCode()

py script 2 that is imported:

def runCode():
   import arcpy
    arcpy.AddMessage('change me!')

 

Is there a way around this?

 

Any input welcome!

Matt

Outcomes