python/env_osx: use the most recently built folder
authorPaul Brossier <piem@piem.org>
Fri, 1 Mar 2013 18:25:29 +0000 (13:25 -0500)
committerPaul Brossier <piem@piem.org>
Fri, 1 Mar 2013 18:25:29 +0000 (13:25 -0500)
python/env_osx

index d15cc8a55bd9c40e9ff0869a3d0bf89758ec67e7..aa27f7e3c0a88299192516995526f011c5f984ea 100755 (executable)
@@ -1,4 +1,4 @@
 #! /bin/sh
 
-export PYTHONPATH=$PWD/build/lib.*:$PWD/tests:$PYTHONPATH
+export PYTHONPATH=$PWD/`ls -rtd build/lib.* | head -1`:$PWD/tests:$PYTHONPATH
 export DYLD_LIBRARY_PATH=$PWD/../build/src