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?

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.
    – Nightvein
    Commented Apr 16, 2012 at 20:10
  • I was considering using the tool share file system, but I can't seem to locate it?
    – Nightvein
    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
    – kenbuja
    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)

2
  • I'm not sure, but are python files that are imported considered dlls?
    – Nightvein
    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)
    – user681
    Commented Apr 18, 2012 at 3:04

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.