Select to view content in your preferred language

Detect ArcGIS tbx file version?

584
1
12-21-2017 11:21 AM
curtvprice
MVP Esteemed Contributor

Is there a way to detect which version a Python toolbox is saved in? I want to double check a Python toolbox is readable by ArcGIS 10.1 or later without opening and resaving the toolbox in old format.

I would be happy with a magic string sequence I could find opening the tbx file as binary from Python. Thanks!

Yes I know .pyt is less version dependent -- one the selling points!

Tags (2)
0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

have you tried an arcpy.ImportToolbox within a try-except block?

0 Kudos