Python toolbox in project template

402
1
03-17-2023 02:35 AM
Labels (3)
TorbjørnDalløkken2
Occasional Contributor

Hi.

I've created an ArcGIS Pro template containing av Python Toolbox. The toolbox contains several scripts in individual .py files. I've created the ArcGIS Pro template with both "Share outside of organization" and "Include Toolboxes" checked. 

When I create a new ArcGIS Pro project based on the template, everything seems to be created as expected (map, layout and toolbox), but the python toolbox does not work. The problem is that the folder containing the scriptfiles is  moved into a folder which has the name of the original folder..

My toolbox contains all of the .py's in a folder called Scriptene:

TorbjrnDallkken2_0-1679924802572.jpeg

TorbjrnDallkken2_1-1679924825372.jpeg

After the new project is created based on the template, the folder Scriptene is now placed inside another folder called Geodata.

TorbjrnDallkken2_2-1679924859558.jpeg

This breaks the toolbox in the newly created project, since the python toolbox imports the scripts directly from Scriptene.

Is this a known feature of using the project template so that I need to change my toolbox, or is there something wrong (which is my guess)?

 

 

1 Reply
TorbjørnDalløkken2
Occasional Contributor

@DanPatterson Do you know anything about this? 🙂

0 Kudos