1

I want to be able to distribute a custom script and it seems that I cannot create a .tbx file, so I looked into the other methods, but they are all only for Python modules it seems.

What I want to be able to do is have the user still be able to pull up the dialog box prompting for input when they click on the tool, how do I go about packaging the external libraries that I used for this script and distribute it such that the user can simply import the tool into his toolbox and click on it and it will pull up the dialog box for user input?

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Apr 16, 2012 at 18:51
8
  • Why can't you share your tbx file? What error do you get? Commented Apr 16, 2012 at 20:04
  • well its not that I can't share a .tbx file, its that you cannot include scripts and external libraries in a .tbx file. Commented Apr 16, 2012 at 20:10
  • I was considering using the tool share file system, but I can't seem to locate it? Commented Apr 16, 2012 at 20:12
  • 1
    I'm away from a computer with ArcGIS on it at the moment. Sorry! I don't want to seem rude not replying though! Commented Apr 16, 2012 at 20:14
  • In 10.1, they are introducing the Python toolbox Commented Apr 16, 2012 at 21:24

1 Answer 1

1

External libraries need to be installed separately. You can import standalone modules but if they require installation of dlls etc you are out of luck (ie SciPy, Numpy etc etc)

answered Apr 16, 2012 at 21:21
2
  • I'm not sure, but are python files that are imported considered dlls? Commented Apr 17, 2012 at 19:40
  • not unless they have to be installed separately, most python modules (aka *.py) may need to be imported but will need to be distributed with the calling code or installed separately (ie SciPy or Numpy) Commented Apr 18, 2012 at 3:04

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.