Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Essentially 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?

share|improve this question
    
Why can't you share your tbx file? What error do you get? –  MappaGnosis Apr 16 '12 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 Apr 16 '12 at 20:10
    
I was considering using the tool share file system, but I can't seem to locate it? –  Nightvein Apr 16 '12 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! –  MappaGnosis Apr 16 '12 at 20:14
    
In 10.1, they are introducing the Python toolbox –  kenbuja Apr 16 '12 at 21:24
show 2 more comments

1 Answer 1

up vote 1 down vote accepted

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)

share|improve this answer
    
I'm not sure, but are python files that are imported considered dlls? –  Nightvein Apr 17 '12 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) –  Dan Patterson Apr 18 '12 at 3:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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