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 9f3cab8c4d22bcb0169ea5f4ba78410c512ccf84..adffa76dc85cdf775b0de2454605a2b5c1c87a3c 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