When packaging a geoprocessing service from a Python script tool incorporates an os.path.join, which includes the path where the script tool is located, the file variable is incorrectly rewritten in the resulting script.
Last Published: October 12, 2015ArcGIS for Desktop
Bug ID Number
June 18, 2015
November 24, 2020
ArcGIS for Desktop
Operating System Version
Will Not Be Addressed
The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.
This is working as expected. os.path.join handles what appears to be a duplicate path.
Move the script and script tool to a different folder.