I have also noticed that when publishing my scripts, ESRI takes it upon themselves to REWRITE my code in the service directory, which I have found actually causes some of my script to FAIL as GP services....WHAT!!!!!!! That is a HUGE no no to me. DO NOT CHANGE MY CODE!!!!!!!!!!!!!!!!!!! Please fix this in SP1, as I am extremely disappointed with the change!
I agree with these post, but I think that Nikolas give us the best option. Actually I use the "createService" rest service method on the root or desire ArcGIS Server folder. Like this...
http://servername:6080/arcgis/admin/services/foldername/createService
I use the attach json code to publish a tbx file. This tbx has a lot of tools that reference to many others python scripts. All of this are located into a registered folder to ensure that ArcGIS Server has permissions.
This process give me the best way to publish tbx.
Regards
Dani
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.