Hello friendly people,
I have written a python script to split up text files. It has an input folder (and an output folder) that I refer to in the beginning:
hardcoded version: _location_for_tables = r"C:\data\2017\LakeKivu\Data\Python_testing\python\Pilot\source"
script tool version: _location_for_tables = arcpy.GetParameterAsText(0)
When I execute the script in Pyscripter and in the command window, also in the python window in ArcGIS, everything runs as expected. But when I run it as a script tool it doesn't find my files. I tried it with the hardcoded path in the script and with an input field where I selected the (same) folder - no difference. I tried to put the path variables in my main() function and in the beginning of my script - no difference.
The only error message I receive is my defined message when the list of files is empty.
Has anyone an idea where the problem is? Please let me know if you need more details. Thanks in advance!