Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a python script that accesses the web and each time it launches I'm prompted by my Little Snitch to allow the connection by Python.

I don't want to allow globally allow Python to connect, since theoretically some rogue app could use the system's python for phoning home etc.

Is there some way to have just this specific script (by, say, system path) to automatically be allowed web access? Or perhaps is there a way to programmatically dismiss the Little Snitch dialog box and allow the connection from inside the script?

share|improve this question
1  
I think you might be able to install (or copy) a second version of python to another directory (maybe to /usr/local/bin/) and rename it, then tell your script to use /usr/local/bin/your_python instead of the usual /usr/bin/python. Maybe Little Snitch will be able to create a rule for this one only. –  slhck May 24 '11 at 8:56
1  
Maybe what @slhck suggested works with creating a symbolic link to the python binary and referencing that one in the shebang-line of your script? –  Daniel Beck May 24 '11 at 9:21
    
great ideas you guys –  GJ. Apr 9 '12 at 8:09
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.