env_linux: use the most recently built folder
authorPaul Brossier <piem@piem.org>
Fri, 1 Mar 2013 22:34:02 +0000 (17:34 -0500)
committerPaul Brossier <piem@piem.org>
Fri, 1 Mar 2013 22:34:02 +0000 (17:34 -0500)
python/env_linux

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