Blender has an interesting way of handling files.
When we have libLeap.so in /usr/lib, and we have Leap.py and LeapPython.so in ~/.config/blender/2.69/scripts/modules, our Sample.py script works and spits out data from the Leap Motion.
When we move libLeap.so, Leap.py and LeapPython.so all into ~/.config/blender/2.69/scripts/modules/Leap, it does not work. While we try different combinations of getting things to work, we have several errors complaining about how modules defined in Leap.py don’t exist or libLeap can’t be found.
Just for fun, we tried running our Sample.py in a regular bash terminal with the setup described in the second paragraph in this post. The result? Flawless, we get data straight out from the Leap Motion.
So the next mission is to dive into Blender and figure out why it’s so particular. Dive, dive, dive! *submarine alarms play*