does running a script as a tool alter python import behavior?

377
0
04-09-2014 01:55 PM
BryanTaylor
New Contributor
I have attempted to create a common "shared_variables.py" module so that I can share information between a python script tool and an outside python interface.  It seems that when the script tool is executed and the "import shared_variables" line is executed, rather than creating access to the data within 'shared_variables.py' it actually creates a copy of 'shared_variables.py' and grants access to the copy.  This is not how python is supposed to work, but is this how python works within arcgis, specifically the script tools?
Tags (2)
0 Kudos
0 Replies